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

Unified Diff: tools/telemetry/telemetry/trace_result.py

Issue 12082091: [telemetry] Add TraceResult as return value from tracing, and placeholder trace_event_importer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 11 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/trace_result.py
diff --git a/tools/telemetry/telemetry/trace_result.py b/tools/telemetry/telemetry/trace_result.py
new file mode 100644
index 0000000000000000000000000000000000000000..e2d851c84d4740b9306722124868894807427cbb
--- /dev/null
+++ b/tools/telemetry/telemetry/trace_result.py
@@ -0,0 +1,16 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+class TraceResult(object):
+ def __init__(self, impl):
+ self._impl = impl
+
+ def Serialize(self, f):
+ """Serializes the trace result to a file-like object"""
+ return self._impl.Serialize(f)
+
+ def AsTimelineModel(self):
+ """Parses the trace result into a timeline model for in-memory
+ manipulation."""
+ return self._impl.AsTimelineModel()

Powered by Google App Engine
This is Rietveld 408576698