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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 @property | 299 @property |
300 def supports_system_info(self): | 300 def supports_system_info(self): |
301 return self.GetSystemInfo() != None | 301 return self.GetSystemInfo() != None |
302 | 302 |
303 def GetSystemInfo(self): | 303 def GetSystemInfo(self): |
304 if self._system_info_backend is None: | 304 if self._system_info_backend is None: |
305 self._system_info_backend = system_info_backend.SystemInfoBackend( | 305 self._system_info_backend = system_info_backend.SystemInfoBackend( |
306 self._port) | 306 self._port) |
307 return self._system_info_backend.GetSystemInfo() | 307 return self._system_info_backend.GetSystemInfo() |
| 308 |
| 309 @property |
| 310 def supports_memory_dumping(self): |
| 311 return True |
| 312 |
| 313 def DumpMemory(self, timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT): |
| 314 return self.devtools_client.DumpMemory(timeout) |
OLD | NEW |