| OLD | NEW |
| 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 | 4 |
| 5 from telemetry.core import util | 5 from telemetry.core import util |
| 6 | 6 |
| 7 DEFAULT_WEB_CONTENTS_TIMEOUT = 90 | 7 DEFAULT_WEB_CONTENTS_TIMEOUT = 90 |
| 8 | 8 |
| 9 # TODO(achuith, dtu, nduca): Add unit tests specifically for WebContents, | 9 # TODO(achuith, dtu, nduca): Add unit tests specifically for WebContents, |
| 10 # independent of Tab. | 10 # independent of Tab. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return self._inspector_backend.message_output_stream | 78 return self._inspector_backend.message_output_stream |
| 79 | 79 |
| 80 @message_output_stream.setter | 80 @message_output_stream.setter |
| 81 def message_output_stream(self, stream): | 81 def message_output_stream(self, stream): |
| 82 self._inspector_backend.message_output_stream = stream | 82 self._inspector_backend.message_output_stream = stream |
| 83 | 83 |
| 84 @property | 84 @property |
| 85 def timeline_model(self): | 85 def timeline_model(self): |
| 86 return self._inspector_backend.timeline_model | 86 return self._inspector_backend.timeline_model |
| 87 | 87 |
| 88 def StartTimelineRecording(self): | 88 def StartTimelineRecording(self, options=None): |
| 89 self._inspector_backend.StartTimelineRecording() | 89 self._inspector_backend.StartTimelineRecording(options) |
| 90 | 90 |
| 91 def StopTimelineRecording(self): | 91 def StopTimelineRecording(self): |
| 92 self._inspector_backend.StopTimelineRecording() | 92 self._inspector_backend.StopTimelineRecording() |
| 93 | 93 |
| 94 def TakeJSHeapSnapshot(self, timeout=120): | 94 def TakeJSHeapSnapshot(self, timeout=120): |
| 95 return self._inspector_backend.TakeJSHeapSnapshot(timeout) | 95 return self._inspector_backend.TakeJSHeapSnapshot(timeout) |
| OLD | NEW |