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

Side by Side Diff: tools/perf/measurements/media.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
« no previous file with comments | « tools/perf/measurements/measurement_smoke_test.py ('k') | tools/perf/measurements/memory.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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 6
7 from metrics import cpu 7 from metrics import cpu
8 from metrics import media 8 from metrics import media
9 from metrics import power 9 from metrics import power
10 from metrics import system_memory 10 from metrics import system_memory
11 11
12 12
13 class Media(page_test.PageTest): 13 class Media(legacy_page_test.LegacyPageTest):
14 """The MediaMeasurement class gathers media-related metrics on a page set. 14 """The MediaMeasurement class gathers media-related metrics on a page set.
15 15
16 Media metrics recorded are controlled by metrics/media.js. At the end of the 16 Media metrics recorded are controlled by metrics/media.js. At the end of the
17 test each metric for every media element in the page are reported. 17 test each metric for every media element in the page are reported.
18 """ 18 """
19 19
20 def __init__(self): 20 def __init__(self):
21 super(Media, self).__init__() 21 super(Media, self).__init__()
22 self._media_metric = None 22 self._media_metric = None
23 # Used to add browser power and CPU metrics to results per test. 23 # Used to add browser power and CPU metrics to results per test.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 self._cpu_metric.AddResults(tab, results, trace_name=trace_name) 64 self._cpu_metric.AddResults(tab, results, trace_name=trace_name)
65 exclude_metrics = ['WorkingSetSizePeak', 'SystemCommitCharge', 'VMPeak', 65 exclude_metrics = ['WorkingSetSizePeak', 'SystemCommitCharge', 'VMPeak',
66 'VM'] 66 'VM']
67 self._memory_metric.AddResults(tab, results, 67 self._memory_metric.AddResults(tab, results,
68 trace_name=trace_name, 68 trace_name=trace_name,
69 exclude_metrics=exclude_metrics) 69 exclude_metrics=exclude_metrics)
70 self._power_metric.AddResults(tab, results) 70 self._power_metric.AddResults(tab, results)
71 71
72 def DidRunPage(self, platform): 72 def DidRunPage(self, platform):
73 self._power_metric.Close() 73 self._power_metric.Close()
OLDNEW
« no previous file with comments | « tools/perf/measurements/measurement_smoke_test.py ('k') | tools/perf/measurements/memory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698