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

Side by Side Diff: tools/perf/metrics/iometric.py

Issue 178943004: Rename tools/perf/metrics/io.py to resolve naming conflicts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: upload again after failed Created 6 years, 9 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/metrics/io.py ('k') | no next file » | 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 metrics import Metric 5 from metrics import Metric
6 6
7 class IOMetric(Metric): 7 class IOMetric(Metric):
8 """IO-related metrics, obtained via telemetry.core.Browser.""" 8 """IO-related metrics, obtained via telemetry.core.Browser."""
9 9
10 @classmethod 10 @classmethod
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if 'WriteTransferCount' in io_stats[process_type_io]: 52 if 'WriteTransferCount' in io_stats[process_type_io]:
53 results.AddSummary('write_bytes_' + process_type_trace, 'kb', 53 results.AddSummary('write_bytes_' + process_type_trace, 'kb',
54 io_stats[process_type_io] 54 io_stats[process_type_io]
55 ['WriteTransferCount'] / 1024, 55 ['WriteTransferCount'] / 1024,
56 data_type='unimportant') 56 data_type='unimportant')
57 57
58 AddSummariesForProcessType('Browser', 'browser') 58 AddSummariesForProcessType('Browser', 'browser')
59 AddSummariesForProcessType('Renderer', 'renderer') 59 AddSummariesForProcessType('Renderer', 'renderer')
60 AddSummariesForProcessType('Gpu', 'gpu') 60 AddSummariesForProcessType('Gpu', 'gpu')
61 61
OLDNEW
« no previous file with comments | « tools/perf/metrics/io.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698