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

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

Issue 441873007: Move timeline and importers to use telemetry.value.TraceValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/strace_profiler.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
index 903d63d73e0bc04b826f5c52e0f4087e0e700a96..56cb79720ae9aad9bfdc773c600c6c74683f7ebd 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
@@ -202,7 +202,7 @@ class StraceProfiler(profiler.Profiler):
super(StraceProfiler, self).__init__(
browser_backend, platform_backend, output_path, state)
assert self._browser_backend.supports_tracing
- self._browser_backend.StartTracing(None, 10)
+ self._browser_backend.browser.StartTracing(None, timeout=10)
process_output_file_map = self._GetProcessOutputFileMap()
self._process_profilers = []
self._output_file = output_path + '.json'
@@ -241,8 +241,8 @@ class StraceProfiler(profiler.Profiler):
for single_process in self._process_profilers:
out_json.extend(single_process.CollectProfile())
- timeline_data = self._browser_backend.StopTracing()
- timeline_model = model.TimelineModel(timeline_data)
+ trace_value = self._browser_backend.browser.StopTracing()
+ timeline_model = model.TimelineModel(trace_value)
out_json.extend(_GenerateTraceMetadata(timeline_model))
with open(self._output_file, 'w') as f:

Powered by Google App Engine
This is Rietveld 408576698