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

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

Issue 144423003: Make timeline model able to return browser process (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: get browser process through thread "CrBrowserMain" 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
« no previous file with comments | « tools/telemetry/telemetry/core/timeline/process.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/core/timeline/thread.py
diff --git a/tools/telemetry/telemetry/core/timeline/thread.py b/tools/telemetry/telemetry/core/timeline/thread.py
index 464a1c31ec3b4ec52e128c01702fe61a80ba7a22..9916d01c825183fbff445528b70377787544c83d 100644
--- a/tools/telemetry/telemetry/core/timeline/thread.py
+++ b/tools/telemetry/telemetry/core/timeline/thread.py
@@ -64,6 +64,11 @@ class Thread(event_container.TimelineEventContainer):
for sub_slice in async_slice.IterEventsInThisContainerRecrusively():
yield sub_slice
+ def IterAllAsyncSlicesOfName(self, name):
+ for s in self.IterAllAsyncSlices():
+ if s.name == name:
+ yield s
+
def IterEventsInThisContainer(self):
return itertools.chain(
iter(self._newly_added_slices),
« no previous file with comments | « tools/telemetry/telemetry/core/timeline/process.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698