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

Side by Side Diff: tools/perf/measurements/v8_gc_times.py

Issue 1917393002: [tools/perf] Reference legacy_page_test module instead of page_test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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.page import page_test 5 from telemetry.page import legacy_page_test
6 from telemetry.timeline.model import TimelineModel 6 from telemetry.timeline.model import TimelineModel
7 from telemetry.timeline import tracing_config 7 from telemetry.timeline import tracing_config
8 from telemetry.util import statistics 8 from telemetry.util import statistics
9 from telemetry.value import scalar 9 from telemetry.value import scalar
10 10
11 11
12 class V8GCTimes(page_test.PageTest): 12 class V8GCTimes(legacy_page_test.LegacyPageTest):
13 13
14 _TIME_OUT_IN_SECONDS = 60 14 _TIME_OUT_IN_SECONDS = 60
15 _CATEGORIES = ['blink.console', 15 _CATEGORIES = ['blink.console',
16 'renderer.scheduler', 16 'renderer.scheduler',
17 'v8', 17 'v8',
18 'webkit.console'] 18 'webkit.console']
19 _RENDERER_MAIN_THREAD = 'CrRendererMain' 19 _RENDERER_MAIN_THREAD = 'CrRendererMain'
20 _IDLE_TASK_PARENT = 'SingleThreadIdleTaskRunner::RunTask' 20 _IDLE_TASK_PARENT = 'SingleThreadIdleTaskRunner::RunTask'
21 21
22 def __init__(self): 22 def __init__(self):
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 self.count = 0 229 self.count = 0
230 230
231 @property 231 @property
232 def thread_duration_outside_idle(self): 232 def thread_duration_outside_idle(self):
233 return self.thread_duration - self.thread_duration_inside_idle 233 return self.thread_duration - self.thread_duration_inside_idle
234 234
235 @property 235 @property
236 def percentage_thread_duration_during_idle(self): 236 def percentage_thread_duration_during_idle(self):
237 return statistics.DivideIfPossibleOrZero( 237 return statistics.DivideIfPossibleOrZero(
238 100 * self.thread_duration_inside_idle, self.thread_duration) 238 100 * self.thread_duration_inside_idle, self.thread_duration)
OLDNEW
« no previous file with comments | « tools/perf/measurements/v8_detached_context_age_in_gc.py ('k') | tools/perf/measurements/webrtc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698