| OLD | NEW |
| 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 Loading... |
| 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') |
| OLD | NEW |