Refactor the current ProducerClient into two separate classes.

PerfettoProducer represents a perfetto ProducerEndpoint and is used by
trace writers to write to perfetto.

PerfettoTracedProcess holds singleton data that perfetto requires to be

There is no behaviour changes in this CL but this is a large refactor.

Change-Id: I60b225bc5663f193f85e5ff3f67edb40ec430ca0
Commit-Queue: Stephen Nusko <>
Reviewed-by: Yusuke Sato <>
Reviewed-by: Eric Seckler <>
Auto-Submit: Stephen Nusko <>
Cr-Commit-Position: refs/heads/master@{#653992}
23 files changed