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

Side by Side Diff: content/test/gpu/gpu_tests/memory_test.py

Issue 1231643002: [Startup Tracing][Telemetry] Move tracing_options and tracing_category_filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | content/test/gpu/gpu_tests/trace_test.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 (c) 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 import memory_test_expectations 4 import memory_test_expectations
5 import page_sets 5 import page_sets
6 6
7 from telemetry import benchmark 7 from telemetry import benchmark
8 from telemetry.core.platform import tracing_category_filter
9 from telemetry.core.platform import tracing_options
10 from telemetry.page import page_test 8 from telemetry.page import page_test
11 from telemetry.timeline import counter 9 from telemetry.timeline import counter
12 from telemetry.timeline import model 10 from telemetry.timeline import model
11 from telemetry.timeline import tracing_category_filter
12 from telemetry.timeline import tracing_options
13 13
14 MEMORY_LIMIT_MB = 192 14 MEMORY_LIMIT_MB = 192
15 SINGLE_TAB_LIMIT_MB = 192 15 SINGLE_TAB_LIMIT_MB = 192
16 WIGGLE_ROOM_MB = 24 16 WIGGLE_ROOM_MB = 24
17 17
18 test_harness_script = r""" 18 test_harness_script = r"""
19 var domAutomationController = {}; 19 var domAutomationController = {};
20 domAutomationController._finished = false; 20 domAutomationController._finished = false;
21 21
22 domAutomationController.send = function(msg) { 22 domAutomationController.send = function(msg) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return 'memory_test' 108 return 'memory_test'
109 109
110 def CreateExpectations(self): 110 def CreateExpectations(self):
111 return memory_test_expectations.MemoryTestExpectations() 111 return memory_test_expectations.MemoryTestExpectations()
112 112
113 def CreateStorySet(self, options): 113 def CreateStorySet(self, options):
114 story_set = page_sets.MemoryTestsStorySet() 114 story_set = page_sets.MemoryTestsStorySet()
115 for page in story_set: 115 for page in story_set:
116 page.script_to_evaluate_on_commit = test_harness_script 116 page.script_to_evaluate_on_commit = test_harness_script
117 return story_set 117 return story_set
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/trace_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698