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

Unified Diff: tools/telemetry/telemetry/trace_event_importer.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
« no previous file with comments | « tools/telemetry/telemetry/run_tests.py ('k') | tools/telemetry/telemetry/trace_result.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/trace_event_importer.py
diff --git a/tools/telemetry/telemetry/trace_event_importer.py b/tools/telemetry/telemetry/trace_event_importer.py
new file mode 100644
index 0000000000000000000000000000000000000000..2352026add48bd0c7fcb16ae57078504883a1a41
--- /dev/null
+++ b/tools/telemetry/telemetry/trace_event_importer.py
@@ -0,0 +1,15 @@
+# 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.
+
+import json
+
+from telemetry import timeline_model
+
+def Import(data):
marja 2013/01/31 09:51:07 Hmm, we still convert an array of strings to a str
+ trace = json.loads(data) # pylint: disable=W0612
+ model = timeline_model.TimelineModel()
+
+ # TODO(nduca): Actually import things.
+
+ return model
« no previous file with comments | « tools/telemetry/telemetry/run_tests.py ('k') | tools/telemetry/telemetry/trace_result.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698