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

Side by Side Diff: tools/perf/measurements/v8_gc_times.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
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 telemetry.core.platform import tracing_category_filter
6 from telemetry.core.platform import tracing_options
7 from telemetry.page import page_test 5 from telemetry.page import page_test
8 from telemetry.timeline.model import TimelineModel 6 from telemetry.timeline.model import TimelineModel
7 from telemetry.timeline import tracing_category_filter
8 from telemetry.timeline import tracing_options
9 from telemetry.util import statistics 9 from telemetry.util import statistics
10 from telemetry.value import scalar 10 from telemetry.value import scalar
11 11
12 12
13 class V8GCTimes(page_test.PageTest): 13 class V8GCTimes(page_test.PageTest):
14 14
15 _TIME_OUT_IN_SECONDS = 60 15 _TIME_OUT_IN_SECONDS = 60
16 _CATEGORIES = ['blink.console', 16 _CATEGORIES = ['blink.console',
17 'renderer.scheduler', 17 'renderer.scheduler',
18 'toplevel', 18 'toplevel',
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 self.idle_task_overrun_duration = 0.0 187 self.idle_task_overrun_duration = 0.0
188 188
189 @property 189 @property
190 def thread_duration_outside_idle(self): 190 def thread_duration_outside_idle(self):
191 return self.thread_duration - self.thread_duration_inside_idle 191 return self.thread_duration - self.thread_duration_inside_idle
192 192
193 @property 193 @property
194 def percentage_thread_duration_during_idle(self): 194 def percentage_thread_duration_during_idle(self):
195 return statistics.DivideIfPossibleOrZero( 195 return statistics.DivideIfPossibleOrZero(
196 100 * self.thread_duration_inside_idle, self.thread_duration) 196 100 * self.thread_duration_inside_idle, self.thread_duration)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698