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

Side by Side Diff: chrome/test/functional/perf_endure.py

Issue 14977013: Delete Automation[Tab/Renderer]Helper and users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update now that 202087 is committed Created 7 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 | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/pyautolib/pyauto.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Performance tests for Chrome Endure (long-running perf tests on Chrome). 6 """Performance tests for Chrome Endure (long-running perf tests on Chrome).
7 7
8 This module accepts the following environment variable inputs: 8 This module accepts the following environment variable inputs:
9 TEST_LENGTH: The number of seconds in which to run each test. 9 TEST_LENGTH: The number of seconds in which to run each test.
10 PERF_STATS_INTERVAL: The number of seconds to wait in-between each sampling 10 PERF_STATS_INTERVAL: The number of seconds to wait in-between each sampling
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 Returns: 403 Returns:
404 A list of extra flags to pass to Chrome when it is launched. 404 A list of extra flags to pass to Chrome when it is launched.
405 """ 405 """
406 # The same with setUp, but need to fetch the environment variable since 406 # The same with setUp, but need to fetch the environment variable since
407 # ExtraChromeFlags is called before setUp. 407 # ExtraChromeFlags is called before setUp.
408 deep_memory_profile = DeepMemoryProfiler.GetEnvironmentVariable( 408 deep_memory_profile = DeepMemoryProfiler.GetEnvironmentVariable(
409 'DEEP_MEMORY_PROFILE', bool, DeepMemoryProfiler.DEEP_MEMORY_PROFILE) 409 'DEEP_MEMORY_PROFILE', bool, DeepMemoryProfiler.DEEP_MEMORY_PROFILE)
410 410
411 # Ensure Chrome enables remote debugging on port 9222. This is required to 411 # Ensure Chrome enables remote debugging on port 9222. This is required to
412 # interact with Chrome's remote inspector. 412 # interact with Chrome's remote inspector.
413 extra_flags = ['--remote-debugging-port=9222'] 413 # Also, enable the memory benchmarking V8 extension for heap dumps.
414 extra_flags = ['--remote-debugging-port=9222',
415 '--enable-memory-benchmarking']
414 if deep_memory_profile: 416 if deep_memory_profile:
415 extra_flags.append('--no-sandbox') 417 extra_flags.append('--no-sandbox')
416 if self._use_wpr: 418 if self._use_wpr:
417 extra_flags.extend(ChromeEndureReplay.CHROME_FLAGS) 419 extra_flags.extend(ChromeEndureReplay.CHROME_FLAGS)
418 return perf.BasePerfTest.ExtraChromeFlags(self) + extra_flags 420 return perf.BasePerfTest.ExtraChromeFlags(self) + extra_flags
419 421
420 def _OnTimelineEvent(self, event_info): 422 def _OnTimelineEvent(self, event_info):
421 """Invoked by the Remote Inspector Client when a timeline event occurs. 423 """Invoked by the Remote Inspector Client when a timeline event occurs.
422 424
423 Args: 425 Args:
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 replay_options.append('--append') 1389 replay_options.append('--append')
1388 return webpagereplay.ReplayServer(archive_path, 1390 return webpagereplay.ReplayServer(archive_path,
1389 cls.WEBPAGEREPLAY_HOST, 1391 cls.WEBPAGEREPLAY_HOST,
1390 cls.WEBPAGEREPLAY_HTTP_PORT, 1392 cls.WEBPAGEREPLAY_HTTP_PORT,
1391 cls.WEBPAGEREPLAY_HTTPS_PORT, 1393 cls.WEBPAGEREPLAY_HTTPS_PORT,
1392 replay_options) 1394 replay_options)
1393 1395
1394 1396
1395 if __name__ == '__main__': 1397 if __name__ == '__main__':
1396 pyauto_functional.Main() 1398 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698