tree: e351222effcb804b5c62c72571d2b29d06574e26 [path history] [tgz]
  1. commands/
  2. app.cc
  3. app.h
  4. BUILD.gn
  5. command.cc
  6. command.h
  7. main.cc
  8. MAINTAINERS
  9. README.md
  10. results_export.cc
  11. results_export.h
  12. results_output.cc
  13. results_output.h
  14. spec.cc
  15. spec.h
  16. spec_unittest.cc
  17. tracer.cc
  18. tracer.h
bin/trace/README.md

trace - collects and converts trace data

trace enables tracing of an application. It exposes the following command line interface (invoke trace with --help to get an overview):

trace [options] command [command-specific options]
  --help: Produce this help message

  list-categories - list all known categories
  record - starts tracing and records data
    --[command args]: Run program before starting trace. The program is terminated when tracing ends unless --detach is specified
    --append-args=[""]: Additional args for the app being traced, appended to those from the spec file, if any
    --buffer-size=[4]: Maximum size of trace buffer for each provider in megabytes
    --categories=[""]: Categories that should be enabled for tracing
    --decouple=[false]: Don't stop tracing when the traced program exits
    --detach=[false]: Don't stop the traced program when tracing finished
    --duration=[10s]: Trace will be active for this long after the session has been started
    --output-file=[/data/trace.json]: Trace data is stored in this file
    --spec-file=[none]: Tracing specification file