[Startup Tracing][Telemetry] Support customizable trace options in TBM
commita969585de4848a78381dedcd9eb631a3c126f072
authorzhenw <zhenw@chromium.org>
Wed, 8 Jul 2015 18:11:04 +0000 (8 11:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 18:11:35 +0000 (8 18:11 +0000)
tree6091c1ac3805ab84bc210df96a0d3283aa4e1627
parent4ed321f5d02a39190b3633f776c61af85b1a48fb
[Startup Tracing][Telemetry] Support customizable trace options in TBM

This CL updates Telemetry to support customizable Chrome trace options. This will be needed by startup tracing. Currently, only the record mode and systrace are supported. We can add other trace options if we need them later.

Startup tracing design doc:
https://docs.google.com/document/d/1yRCXhrQ-0rsfUgNHt9T4YdnmJYrXKN6aK56Ozk3kPVc/edit#heading=h.7suon55jg9u4

BUG=317481, 482098
CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect

Review URL: https://codereview.chromium.org/1215533002

Cr-Commit-Position: refs/heads/master@{#337862}
tools/telemetry/telemetry/core/platform/tracing_options.py
tools/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend.py
tools/telemetry/telemetry/web_perf/timeline_based_measurement.py