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

Side by Side Diff: tools/perf/benchmarks/memory_health_plan.py

Issue 1231643002: [Startup Tracing][Telemetry] Move tracing_options and tracing_category_filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/gpu_times.py ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from telemetry import benchmark 7 from telemetry import benchmark
8 from telemetry.core.platform import tracing_category_filter 8 from telemetry.timeline import tracing_category_filter
9 from telemetry.web_perf import timeline_based_measurement 9 from telemetry.web_perf import timeline_based_measurement
10 10
11 import page_sets 11 import page_sets
12 12
13 13
14 @benchmark.Enabled('android') 14 @benchmark.Enabled('android')
15 class MemoryHealthPlan(perf_benchmark.PerfBenchmark): 15 class MemoryHealthPlan(perf_benchmark.PerfBenchmark):
16 """Timeline based benchmark for the Memory Health Plan.""" 16 """Timeline based benchmark for the Memory Health Plan."""
17 17
18 page_set = page_sets.MemoryHealthStory 18 page_set = page_sets.MemoryHealthStory
19 19
20 def CreateTimelineBasedMeasurementOptions(self): 20 def CreateTimelineBasedMeasurementOptions(self):
21 trace_memory = tracing_category_filter.TracingCategoryFilter( 21 trace_memory = tracing_category_filter.TracingCategoryFilter(
22 filter_string='disabled-by-default-memory-infra') 22 filter_string='disabled-by-default-memory-infra')
23 return timeline_based_measurement.Options(overhead_level=trace_memory) 23 return timeline_based_measurement.Options(overhead_level=trace_memory)
24 24
25 @classmethod 25 @classmethod
26 def Name(cls): 26 def Name(cls):
27 return 'memory.memory_health_plan' 27 return 'memory.memory_health_plan'
28 28
29 @classmethod 29 @classmethod
30 def ValueCanBeAddedPredicate(cls, value, is_first_result): 30 def ValueCanBeAddedPredicate(cls, value, is_first_result):
31 return value.name.startswith('measurement-memory_') 31 return value.name.startswith('measurement-memory_')
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/gpu_times.py ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698