tree: 07dbc1a9156b2a70431e623612bbdc66c4434845 [path history] [tgz]
  1. counters/
  2. memory/
  3. process_metadata/
  4. proto/
  5. scheduling/
  6. testdata/
  7. trace_events/
  8. BUILD
  9. README.md
  10. trace_processor_daemon.cc
  11. trace_processor_service.cc
  12. trace_processor_service.h
  13. trace_processor_service_test.cc
profiler/native/trace_processor_daemon/README.md

TraceProcessor Daemon

The TraceProcessor Daemon (TPD) wraps around the TraceProcessor C++ library from Perfetto and exposes a set of gRPC APIs to load and query trace files produced by Perfetto.

TPD Release Process

After merging your commits into HEAD, Studio postsubmit bots for windows, linux and mac will copy the optimized binary into their outputs.

Copy those binaries into .../prebuilts/tools/common/trace-processor-daemon/, dropping each binary into the corresponding platform sub-directory.

Run chmod +x for the Mac and Linux ones.

Update .../prebuilts/tools/common/trace-processor-daemon/version with the build id of the postsubmit build which you grabbed the binaries from.

Local e2e Testing

For local e2e testing (running the IDE built from HEAD while also observing the changes made locally to TPD), build the daemon with:

bazel build --config=release //tools/base/profiler/native/trace_processor_daemon

It will tell you where the binary was generated. Copy it into

.../prebuilts/tools/common/trace-processor-daemon/[local_platform]

You might need to chmod +x if on Linux or Mac. Remember to git restore the binary file when you're done.