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

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

Issue 319813004: [Telemetry] Update copyright header style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove stray change Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « tools/perf/measurements/image_decoding.py ('k') | tools/perf/measurements/page_cycler.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 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 memory 5 from metrics import memory
6 from metrics import power 6 from metrics import power
7 from telemetry.page import page_measurement 7 from telemetry.page import page_measurement
8 8
9 class Memory(page_measurement.PageMeasurement): 9 class Memory(page_measurement.PageMeasurement):
10 def __init__(self): 10 def __init__(self):
11 super(Memory, self).__init__('RunStressMemory') 11 super(Memory, self).__init__('RunStressMemory')
(...skipping 23 matching lines...) Expand all
35 # The tcmalloc_heap_profiler dumps files at regular 35 # The tcmalloc_heap_profiler dumps files at regular
36 # intervals (~20 secs). 36 # intervals (~20 secs).
37 # This is a minor optimization to ensure it'll dump the last file when 37 # This is a minor optimization to ensure it'll dump the last file when
38 # the test completes. 38 # the test completes.
39 tab.ExecuteJavaScript(""" 39 tab.ExecuteJavaScript("""
40 if (chrome && chrome.memoryBenchmarking) { 40 if (chrome && chrome.memoryBenchmarking) {
41 chrome.memoryBenchmarking.heapProfilerDump('renderer', 'final'); 41 chrome.memoryBenchmarking.heapProfilerDump('renderer', 'final');
42 chrome.memoryBenchmarking.heapProfilerDump('browser', 'final'); 42 chrome.memoryBenchmarking.heapProfilerDump('browser', 'final');
43 } 43 }
44 """) 44 """)
OLDNEW
« no previous file with comments | « tools/perf/measurements/image_decoding.py ('k') | tools/perf/measurements/page_cycler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698