Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py

Issue 168823005: [telemetry] Enable flow events by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
index cbeb8b71b379401844f508bbbcff2ec2aee0f60a..58d8d4283a6207fb2a9399edad841fda0e4fd54b 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
@@ -14,7 +14,11 @@ class TraceProfiler(profiler.Profiler):
super(TraceProfiler, self).__init__(
browser_backend, platform_backend, output_path, state)
assert self._browser_backend.supports_tracing
- self._browser_backend.StartTracing(categories, timeout=10)
+ # We always want flow events when tracing via telemetry.
+ categories_with_flow = 'disabled-by-default-toplevel.flow'
+ if categories:
+ categories_with_flow = ',%s' % categories
+ self._browser_backend.StartTracing(categories_with_flow, timeout=10)
@classmethod
def name(cls):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698