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

Unified Diff: tools/telemetry/telemetry/timeline/importer.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/timeline/importer.py
diff --git a/tools/telemetry/telemetry/timeline/importer.py b/tools/telemetry/telemetry/timeline/importer.py
index c2eca7574bb724dbf5521ad99c4d5e7e8cec4b4e..333ab3367027a55526a8492aaa0715d049c3f0c1 100644
--- a/tools/telemetry/telemetry/timeline/importer.py
+++ b/tools/telemetry/telemetry/timeline/importer.py
@@ -3,17 +3,14 @@
# found in the LICENSE file.
class TimelineImporter(object):
- """Interface for classes that can add events to
- a timeline model from an TimelineData."""
- def __init__(self, model, timeline_data, import_priority=0):
+ """Reads TraceData and populates timeline model with what it finds."""
+ def __init__(self, model, trace_data, import_order):
self._model = model
- self._timeline_data = timeline_data
- self.import_priority = import_priority
+ self._trace_data = trace_data
+ self.import_order = import_order
@staticmethod
- def CanImport(event_data_wrapper):
- """Returns true if the importer can process the given event data in the
- wrapper."""
+ def GetSupportedPart():
raise NotImplementedError
def ImportEvents(self):

Powered by Google App Engine
This is Rietveld 408576698