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

Unified Diff: tools/perf/metrics/rendering_stats_unittest.py

Issue 100073003: telemetry: Add thread time to telmetry timeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean-ups Created 7 years 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/timeline/counter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/rendering_stats_unittest.py
diff --git a/tools/perf/metrics/rendering_stats_unittest.py b/tools/perf/metrics/rendering_stats_unittest.py
index ec18597b8ce059b7e527be493b62c15cc01aae9c..42eec9ff8c0f68550771f8e6255dd91213d67f2c 100644
--- a/tools/perf/metrics/rendering_stats_unittest.py
+++ b/tools/perf/metrics/rendering_stats_unittest.py
@@ -60,7 +60,8 @@ def AddMainThreadRenderingStats(mock_timer, thread, first_frame,
# Add a slice with the event data to the given thread.
thread.PushCompleteSlice(
'benchmark', 'BenchmarkInstrumentation::MainThreadRenderingStats',
- timestamp, 0.0, {'data': data})
+ timestamp, duration=0.0, thread_timestamp=None, thread_duration=None,
+ args={'data': data})
if not ref_stats:
return
@@ -97,7 +98,8 @@ def AddImplThreadRenderingStats(mock_timer, thread, first_frame,
# Add a slice with the event data to the given thread.
thread.PushCompleteSlice(
'benchmark', 'BenchmarkInstrumentation::ImplThreadRenderingStats',
- timestamp, 0.0, {'data': data})
+ timestamp, duration=0.0, thread_timestamp=None, thread_duration=None,
+ args={'data': data})
if not ref_stats:
return
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/timeline/counter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698