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

Side by Side Diff: tools/telemetry/telemetry/internal/backends/chrome/chrome_browser_backend.py

Issue 1224083015: [telemetry] Add support for requesting memory dumps via DevTools API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests 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
OLDNEW
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 logging 5 import logging
6 import pprint 6 import pprint
7 import re 7 import re
8 import sys 8 import sys
9 9
10 from telemetry.core import exceptions 10 from telemetry.core import exceptions
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 @property 297 @property
298 def supports_system_info(self): 298 def supports_system_info(self):
299 return self.GetSystemInfo() != None 299 return self.GetSystemInfo() != None
300 300
301 def GetSystemInfo(self): 301 def GetSystemInfo(self):
302 if self._system_info_backend is None: 302 if self._system_info_backend is None:
303 self._system_info_backend = system_info_backend.SystemInfoBackend( 303 self._system_info_backend = system_info_backend.SystemInfoBackend(
304 self._port) 304 self._port)
305 return self._system_info_backend.GetSystemInfo() 305 return self._system_info_backend.GetSystemInfo()
306
307 @property
308 def supports_memory_dumping(self):
309 return True
310
311 def DumpMemory(self, timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT):
312 return self.devtools_client.DumpMemory(timeout)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698