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

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

Issue 959983002: Add filter function to gpu_times. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/web_perf/metrics/gpu_timeline.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/gpu_times.py
diff --git a/tools/perf/benchmarks/gpu_times.py b/tools/perf/benchmarks/gpu_times.py
index 13915bbd969858627eb36919bfbc59409b19242f..c2ccd0ec7f90f024a6dccdd7e1ff377db381c702 100644
--- a/tools/perf/benchmarks/gpu_times.py
+++ b/tools/perf/benchmarks/gpu_times.py
@@ -26,6 +26,10 @@ class _GPUTimes(benchmark.Benchmark):
overhead_level=cat_filter,
get_metrics_from_flags_callback=_GetGPUTimelineMetric)
+ @classmethod
+ def ValueCanBeAddedPredicate(cls, value):
+ return (isinstance(value, gpu_timeline.GPUTimelineListOfValues) or
+ isinstance(value, gpu_timeline.GPUTimelineValue))
@benchmark.Disabled # http://crbug.com/455292
class GPUTimesKeyMobileSites(_GPUTimes):
@@ -68,3 +72,4 @@ class GPUTimesGpuRasterizationTop25Sites(_GPUTimes):
@classmethod
def Name(cls):
return 'gpu_times.gpu_rasterization.top_25_smooth'
+
« no previous file with comments | « no previous file | tools/telemetry/telemetry/web_perf/metrics/gpu_timeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698