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

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

Issue 814813003: Added test that SurfaceFlinger metrics are calculated on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PLEASE IGNORE: accidentally uploaded to wrong issue Created 6 years 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 089b0388e0f2e5e0d86e14c2dfdc1f7062865497..b41569b09cab06d4dd6b2f97c8ec5f857028cdfc 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/trace_profiler.py
@@ -6,6 +6,7 @@ import codecs
from telemetry.core.platform import profiler
from telemetry.core.platform import tracing_options
+from telemetry.timeline import trace_data as trace_data_module
class TraceProfiler(profiler.Profiler):
@@ -35,7 +36,9 @@ class TraceProfiler(profiler.Profiler):
def CollectProfile(self):
print 'Processing trace...'
- trace_result = self._browser_backend.StopTracing()
+ trace_result_builder = trace_data_module.TraceDataBuilder()
+ self._browser_backend.StopTracing(trace_result_builder)
+ trace_result = trace_result_builder.AsData()
trace_file = '%s.json' % self._output_path

Powered by Google App Engine
This is Rietveld 408576698