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

Unified Diff: tools/telemetry/telemetry/timeline/model.py

Issue 765773004: telemetry: Clean up SurfaceFlinger statistics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean-up 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/model.py
diff --git a/tools/telemetry/telemetry/timeline/model.py b/tools/telemetry/telemetry/timeline/model.py
index 13dc1cfcfbb3bd839c8976590a5e2977ddf580a9..3fc1b8a16df544d98ba28aeea4b413c6173e2f98 100644
--- a/tools/telemetry/telemetry/timeline/model.py
+++ b/tools/telemetry/telemetry/timeline/model.py
@@ -16,6 +16,7 @@ from telemetry.timeline import bounds
from telemetry.timeline import empty_timeline_data_importer
from telemetry.timeline import event_container
from telemetry.timeline import inspector_importer
+from telemetry.timeline import surface_flinger_importer
from telemetry.timeline import trace_event_importer
# Register importers for data
@@ -23,7 +24,8 @@ from telemetry.timeline import trace_event_importer
_IMPORTERS = [
empty_timeline_data_importer.EmptyTimelineDataImporter,
inspector_importer.InspectorTimelineImporter,
- trace_event_importer.TraceEventTimelineImporter
+ trace_event_importer.TraceEventTimelineImporter,
+ surface_flinger_importer.SurfaceFlingerTimelineImporter
]
@@ -57,6 +59,7 @@ class TimelineModel(event_container.TimelineEventContainer):
self._thread_time_bounds = {}
self._processes = {}
self._browser_process = None
+ self._surface_flinger_process = None
self._frozen = False
self._tab_ids_to_renderer_threads_map = {}
self.import_errors = []
@@ -96,6 +99,16 @@ class TimelineModel(event_container.TimelineEventContainer):
def browser_process(self, browser_process):
self._browser_process = browser_process
+ @property
+ #pylint: disable=E0202
+ def surface_flinger_process(self):
+ return self._surface_flinger_process
+
+ @surface_flinger_process.setter
+ #pylint: disable=E0202
+ def surface_flinger_process(self, surface_flinger_process):
+ self._surface_flinger_process = surface_flinger_process
+
def AddMappingFromTabIdToRendererThread(self, tab_id, renderer_thread):
if self._frozen:
raise Exception('Cannot add mapping from tab id to renderer thread once '

Powered by Google App Engine
This is Rietveld 408576698