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 |