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

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

Issue 816833006: Add explicit support for discovering the GpuProcess to Telemetry's 'Model'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/timeline/model.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/timeline/trace_event_importer.py
diff --git a/tools/telemetry/telemetry/timeline/trace_event_importer.py b/tools/telemetry/telemetry/timeline/trace_event_importer.py
index 5b024da3613d0e37a1a0e47eceb7ea2f7deec437..3ed549b7ee4b6d4ff0f6c97f19dd5424a3308279 100644
--- a/tools/telemetry/telemetry/timeline/trace_event_importer.py
+++ b/tools/telemetry/telemetry/timeline/trace_event_importer.py
@@ -222,6 +222,7 @@ class TraceEventTimelineImporter(importer.TimelineImporter):
self._CreateAsyncSlices()
self._CreateFlowSlices()
self._SetBrowserProcess()
+ self._SetGpuProcess()
self._CreateExplicitObjects()
self._CreateImplicitObjects()
@@ -395,3 +396,8 @@ class TraceEventTimelineImporter(importer.TimelineImporter):
for thread in self._model.GetAllThreads():
if thread.name == 'CrBrowserMain':
self._model.browser_process = thread.parent
+
+ def _SetGpuProcess(self):
+ for thread in self._model.GetAllThreads():
+ if thread.name == 'CrGpuMain':
+ self._model.gpu_process = thread.parent
« no previous file with comments | « tools/telemetry/telemetry/timeline/model.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698