| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 time | 6 import time |
| 6 import logging | |
| 7 import urlparse | 7 import urlparse |
| 8 | 8 |
| 9 from telemetry.page.actions.drag import DragAction | 9 from telemetry.page.actions.drag import DragAction |
| 10 from telemetry.page.actions.javascript_click import ClickElementAction | 10 from telemetry.page.actions.javascript_click import ClickElementAction |
| 11 from telemetry.page.actions.loop import LoopAction | 11 from telemetry.page.actions.loop import LoopAction |
| 12 from telemetry.page.actions.mouse_click import MouseClickAction | 12 from telemetry.page.actions.mouse_click import MouseClickAction |
| 13 from telemetry.page.actions.navigate import NavigateAction | 13 from telemetry.page.actions.navigate import NavigateAction |
| 14 from telemetry.page.actions.pinch import PinchAction | 14 from telemetry.page.actions.pinch import PinchAction |
| 15 from telemetry.page.actions.play import PlayAction | 15 from telemetry.page.actions.play import PlayAction |
| 16 from telemetry.page.actions.repaint_continuously import ( | 16 from telemetry.page.actions.repaint_continuously import ( |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 self._action_runner.ExecuteJavaScript('console.time("%s");' % | 630 self._action_runner.ExecuteJavaScript('console.time("%s");' % |
| 631 timeline_interaction_record.GetJavaScriptMarker( | 631 timeline_interaction_record.GetJavaScriptMarker( |
| 632 self._label, self._flags)) | 632 self._label, self._flags)) |
| 633 | 633 |
| 634 def End(self): | 634 def End(self): |
| 635 assert self._started | 635 assert self._started |
| 636 self._started = False | 636 self._started = False |
| 637 self._action_runner.ExecuteJavaScript('console.timeEnd("%s");' % | 637 self._action_runner.ExecuteJavaScript('console.timeEnd("%s");' % |
| 638 timeline_interaction_record.GetJavaScriptMarker( | 638 timeline_interaction_record.GetJavaScriptMarker( |
| 639 self._label, self._flags)) | 639 self._label, self._flags)) |
| OLD | NEW |