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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/chrome_trace_result.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 | « no previous file | tools/telemetry/telemetry/core/backends/chrome/tracing_backend_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/backends/chrome/chrome_trace_result.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/chrome_trace_result.py b/tools/telemetry/telemetry/core/backends/chrome/chrome_trace_result.py
index f159757faeec0e0c4350fa055f6961e92906c5e7..4631814ad4400871ba60c97c7e387ea05320b3a5 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/chrome_trace_result.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/chrome_trace_result.py
@@ -21,6 +21,9 @@ class ChromeTraceResult(object):
"""Parses the trace result into a timeline model for in-memory
manipulation."""
timeline = self._CreateTimelineModel()
+ for thread in timeline.GetAllThreads():
+ if thread.name == 'CrBrowserMain':
+ timeline.browser_process = thread.parent
for key, value in self._tab_to_marker_mapping.iteritems():
timeline_markers = timeline.FindTimelineMarkers(value)
assert(len(timeline_markers) == 1)
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/backends/chrome/tracing_backend_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698