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

Unified Diff: tools/perf/benchmarks/thread_times.py

Issue 1084533005: Support total and per-second task/threadtime timeline metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review (use %) Created 5 years, 8 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/perf/benchmarks/thread_times.py
diff --git a/tools/perf/benchmarks/thread_times.py b/tools/perf/benchmarks/thread_times.py
index 9d7400f8d2d4b1d9d59960d900d9303cb9b7cf7c..0261bd7f84c895ef49525acab3f3afa1cff55eb1 100644
--- a/tools/perf/benchmarks/thread_times.py
+++ b/tools/perf/benchmarks/thread_times.py
@@ -18,6 +18,11 @@ class _ThreadTimes(benchmark.Benchmark):
def Name(cls):
return 'thread_times'
+ @classmethod
+ def ValueCanBeAddedPredicate(cls, value, _):
+ # Default to only reporting per-frame metrics.
+ return 'per_ms' not in value.name
+
def CreatePageTest(self, options):
return thread_times.ThreadTimes(options.report_silk_details)
« no previous file with comments | « no previous file | tools/perf/measurements/thread_times_unittest.py » ('j') | tools/perf/metrics/timeline_unittest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698