OLD | NEW |
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 Loading... |
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) |
OLD | NEW |