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

Unified Diff: tools/telemetry/telemetry/core/timeline/thread.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/thread.py
diff --git a/tools/telemetry/telemetry/core/timeline/thread.py b/tools/telemetry/telemetry/core/timeline/thread.py
index 31418c1ea1fbca75fbb9c5dac4d2c78ef27404a3..eeb7ce150c7a861e3abd6b75337ef341bbdb50ff 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),
« tools/perf/metrics/smoothness.py ('K') | « tools/telemetry/telemetry/core/timeline/model.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698