OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 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 | 4 |
5 import logging | 5 import logging |
6 import sys | 6 import sys |
7 | 7 |
8 from catapult_base import cloud_storage # pylint: disable=import-error | 8 from catapult_base import cloud_storage # pylint: disable=import-error |
9 | 9 |
10 from telemetry.core import exceptions | 10 from telemetry.core import exceptions |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 def GetStandardOutput(self): | 272 def GetStandardOutput(self): |
273 return self._browser_backend.GetStandardOutput() | 273 return self._browser_backend.GetStandardOutput() |
274 | 274 |
275 def GetLogFileContents(self): | 275 def GetLogFileContents(self): |
276 return self._browser_backend.GetLogFileContents() | 276 return self._browser_backend.GetLogFileContents() |
277 | 277 |
278 def GetStackTrace(self): | 278 def GetStackTrace(self): |
279 return self._browser_backend.GetStackTrace() | 279 return self._browser_backend.GetStackTrace() |
280 | 280 |
| 281 def GetMostRecentMinidumpPath(self): |
| 282 """Returns the path to the most recent minidump.""" |
| 283 return self._browser_backend.GetMostRecentMinidumpPath() |
| 284 |
| 285 def GetAllMinidumpPaths(self): |
| 286 """Returns all minidump paths available in the backend.""" |
| 287 return self._browser_backend.GetAllMinidumpPaths() |
| 288 |
| 289 def GetAllUnsymbolizedMinidumpPaths(self): |
| 290 """Returns paths to all minidumps that have not already been |
| 291 symbolized.""" |
| 292 return self._browser_backend.GetAllUnsymbolizedMinidumpPaths() |
| 293 |
| 294 def SymbolizeMinidump(self, minidump_path): |
| 295 """Given a minidump path, this method returns a tuple with the |
| 296 first value being whether or not the minidump was able to be |
| 297 symbolized and the second being that symbolized dump when true |
| 298 and error message when false.""" |
| 299 return self._browser_backend.SymbolizeMinidump(minidump_path) |
| 300 |
281 @property | 301 @property |
282 def supports_system_info(self): | 302 def supports_system_info(self): |
283 return self._browser_backend.supports_system_info | 303 return self._browser_backend.supports_system_info |
284 | 304 |
285 def GetSystemInfo(self): | 305 def GetSystemInfo(self): |
286 """Returns low-level information about the system, if available. | 306 """Returns low-level information about the system, if available. |
287 | 307 |
288 See the documentation of the SystemInfo class for more details.""" | 308 See the documentation of the SystemInfo class for more details.""" |
289 return self._browser_backend.GetSystemInfo() | 309 return self._browser_backend.GetSystemInfo() |
290 | 310 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 except Exception: | 349 except Exception: |
330 logging.exception('Failed to get browser standard output:') | 350 logging.exception('Failed to get browser standard output:') |
331 logging.info('*********** END OF BROWSER STANDARD OUTPUT ************') | 351 logging.info('*********** END OF BROWSER STANDARD OUTPUT ************') |
332 | 352 |
333 logging.info('********************* BROWSER LOG *********************') | 353 logging.info('********************* BROWSER LOG *********************') |
334 try: # pylint: disable=broad-except | 354 try: # pylint: disable=broad-except |
335 logging.info(self.GetLogFileContents()) | 355 logging.info(self.GetLogFileContents()) |
336 except Exception: | 356 except Exception: |
337 logging.exception('Failed to get browser log:') | 357 logging.exception('Failed to get browser log:') |
338 logging.info('***************** END OF BROWSER LOG ******************') | 358 logging.info('***************** END OF BROWSER LOG ******************') |
OLD | NEW |