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

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

Issue 132433004: Collecting LatencyInfo in telemetry (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: unittest added Created 6 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
Index: tools/telemetry/telemetry/core/timeline/model.py
diff --git a/tools/telemetry/telemetry/core/timeline/model.py b/tools/telemetry/telemetry/core/timeline/model.py
index ec8dccb4b786b19c605dbbac5dad2898bb4e9fb1..521c1f6057ff100a6823aa9d1ecabf51657fe920 100644
--- a/tools/telemetry/telemetry/core/timeline/model.py
+++ b/tools/telemetry/telemetry/core/timeline/model.py
@@ -150,6 +150,12 @@ class TimelineModel(object):
threads.extend(process.threads.values())
return threads
+ def GetBrowserMainThread(self):
+ for thread in self.GetAllThreads():
+ if thread.name == 'CrBrowserMain':
+ return thread
+ return None
+
def GetAllEvents(self):
return list(self.IterAllEvents())

Powered by Google App Engine
This is Rietveld 408576698