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

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

Issue 453033002: Switch startTracing to use record-as-much-as-possible option. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Nat's comments Created 6 years, 4 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
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 58d8d4283a6207fb2a9399edad841fda0e4fd54b..089b0388e0f2e5e0d86e14c2dfdc1f7062865497 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
@@ -5,6 +5,7 @@
import codecs
from telemetry.core.platform import profiler
+from telemetry.core.platform import tracing_options
class TraceProfiler(profiler.Profiler):
@@ -18,7 +19,10 @@ class TraceProfiler(profiler.Profiler):
categories_with_flow = 'disabled-by-default-toplevel.flow'
if categories:
categories_with_flow = ',%s' % categories
- self._browser_backend.StartTracing(categories_with_flow, timeout=10)
+ options = tracing_options.TracingOptions()
+ options.enable_chrome_trace = True
+ self._browser_backend.StartTracing(
+ options, categories_with_flow, timeout=10)
@classmethod
def name(cls):

Powered by Google App Engine
This is Rietveld 408576698