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

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

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 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/media.py ('k') | tools/perf/metrics/power.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 import sys 5 import sys
6 6
7 from metrics import Metric
8 from telemetry.value import histogram 7 from telemetry.value import histogram
9 from telemetry.value import histogram_util 8 from telemetry.value import histogram_util
10 from telemetry.value import scalar 9 from telemetry.value import scalar
11 10
11 from metrics import Metric
12
12 13
13 _HISTOGRAMS = [ 14 _HISTOGRAMS = [
14 { 15 {
15 'name': 'V8.MemoryExternalFragmentationTotal', 'units': 'percent', 16 'name': 'V8.MemoryExternalFragmentationTotal', 'units': 'percent',
16 'display_name': 'V8_MemoryExternalFragmentationTotal', 17 'display_name': 'V8_MemoryExternalFragmentationTotal',
17 'type': histogram_util.RENDERER_HISTOGRAM, 18 'type': histogram_util.RENDERER_HISTOGRAM,
18 'description': 'Total external memory fragmentation after each GC in ' 19 'description': 'Total external memory fragmentation after each GC in '
19 'percent.', 20 'percent.',
20 }, 21 },
21 { 22 {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 AddResult('VMPeak', 'vm_peak_size', 224 AddResult('VMPeak', 'vm_peak_size',
224 'The peak Virtual Memory Size (address space allocated) usage ' 225 'The peak Virtual Memory Size (address space allocated) usage '
225 'achieved by the * process.') 226 'achieved by the * process.')
226 AddResult('WorkingSetSizePeak', '%s_peak_size' % metric, 227 AddResult('WorkingSetSizePeak', '%s_peak_size' % metric,
227 'Peak Working Set Size.') 228 'Peak Working Set Size.')
228 229
229 AddResultsForProcessTypes(['Browser'], 'browser') 230 AddResultsForProcessTypes(['Browser'], 'browser')
230 AddResultsForProcessTypes(['Renderer'], 'renderer') 231 AddResultsForProcessTypes(['Renderer'], 'renderer')
231 AddResultsForProcessTypes(['Gpu'], 'gpu') 232 AddResultsForProcessTypes(['Gpu'], 'gpu')
232 AddResultsForProcessTypes(['Browser', 'Renderer', 'Gpu'], 'total') 233 AddResultsForProcessTypes(['Browser', 'Renderer', 'Gpu'], 'total')
OLDNEW
« no previous file with comments | « tools/perf/metrics/media.py ('k') | tools/perf/metrics/power.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698