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

Side by Side Diff: tools/telemetry/telemetry/core/browser.py

Issue 14359012: Telemetry: Add option to create a dirty profile as part of a test run (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace fixes Created 7 years, 7 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
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 collections 4 import collections
5 import os 5 import os
6 6
7 from telemetry.core import browser_credentials 7 from telemetry.core import browser_credentials
8 from telemetry.core import extension_dict 8 from telemetry.core import extension_dict
9 from telemetry.core import tab_list 9 from telemetry.core import tab_list
10 from telemetry.core import temporary_http_server 10 from telemetry.core import temporary_http_server
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 @property 72 @property
73 def extensions(self): 73 def extensions(self):
74 """Returns the extension dictionary if it exists.""" 74 """Returns the extension dictionary if it exists."""
75 if not self.supports_extensions: 75 if not self.supports_extensions:
76 raise browser_backend.ExtensionsNotSupportedException( 76 raise browser_backend.ExtensionsNotSupportedException(
77 'Extensions not supported') 77 'Extensions not supported')
78 return self._extensions 78 return self._extensions
79 79
80 @property 80 @property
81 def profile_directory(self):
nduca 2013/04/26 20:09:36 we shouldn't let people see where the profile dir
82 return self._browser_backend.profile_directory
83
84 @property
81 def supports_tracing(self): 85 def supports_tracing(self):
82 return self._browser_backend.supports_tracing 86 return self._browser_backend.supports_tracing
83 87
84 @property 88 @property
85 def memory_stats(self): 89 def memory_stats(self):
86 """Returns a dict of memory statistics for the browser: 90 """Returns a dict of memory statistics for the browser:
87 { 'Browser': { 91 { 'Browser': {
88 'VM': S, 92 'VM': S,
89 'VMPeak': T, 93 'VMPeak': T,
90 'WorkingSetSize': U, 94 'WorkingSetSize': U,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 archive_path, 214 archive_path,
211 use_record_mode, 215 use_record_mode,
212 self._browser_backend.WEBPAGEREPLAY_HOST, 216 self._browser_backend.WEBPAGEREPLAY_HOST,
213 self._browser_backend.webpagereplay_local_http_port, 217 self._browser_backend.webpagereplay_local_http_port,
214 self._browser_backend.webpagereplay_local_https_port, 218 self._browser_backend.webpagereplay_local_https_port,
215 self._browser_backend.webpagereplay_remote_http_port, 219 self._browser_backend.webpagereplay_remote_http_port,
216 self._browser_backend.webpagereplay_remote_https_port) 220 self._browser_backend.webpagereplay_remote_https_port)
217 221
218 def GetStandardOutput(self): 222 def GetStandardOutput(self):
219 return self._browser_backend.GetStandardOutput() 223 return self._browser_backend.GetStandardOutput()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698