Index: tools/perf/measurements/timeline_controller.py |
diff --git a/tools/perf/measurements/timeline_controller.py b/tools/perf/measurements/timeline_controller.py |
index 608a17a468786564f0b2f2c6fb0d180de4d4b8b4..2306c93a2872501eff531b996c4e23960796bdbd 100644 |
--- a/tools/perf/measurements/timeline_controller.py |
+++ b/tools/perf/measurements/timeline_controller.py |
@@ -5,7 +5,6 @@ |
from telemetry.core.platform import tracing_category_filter |
from telemetry.core.platform import tracing_options |
from telemetry.page import action_runner |
-from telemetry.page import page_test |
from telemetry.timeline.model import TimelineModel |
from telemetry.value import trace |
from telemetry.web_perf import smooth_gesture_util |
@@ -16,14 +15,13 @@ |
class TimelineController(object): |
- def __init__(self, enable_auto_issuing_record=True): |
+ def __init__(self): |
super(TimelineController, self).__init__() |
self.trace_categories = None |
self._model = None |
self._renderer_process = None |
self._smooth_records = [] |
self._interaction = None |
- self._enable_auto_issuing_record = enable_auto_issuing_record |
def SetUp(self, page, tab): |
"""Starts gathering timeline data. |
@@ -45,15 +43,13 @@ |
def Start(self, tab): |
# Start the smooth marker for all actions. |
runner = action_runner.ActionRunner(tab) |
- if self._enable_auto_issuing_record: |
- self._interaction = runner.CreateInteraction( |
- RUN_SMOOTH_ACTIONS) |
- self._interaction.Begin() |
+ self._interaction = runner.CreateInteraction( |
+ RUN_SMOOTH_ACTIONS) |
+ self._interaction.Begin() |
def Stop(self, tab, results): |
# End the smooth marker for all actions. |
- if self._enable_auto_issuing_record: |
- self._interaction.End() |
+ self._interaction.End() |
# Stop tracing. |
timeline_data = tab.browser.platform.tracing_controller.Stop() |
results.AddValue(trace.TraceValue( |
@@ -85,9 +81,6 @@ |
if len(self._smooth_records) == 0 and run_smooth_actions_record: |
self._smooth_records = [run_smooth_actions_record] |
- if len(self._smooth_records) == 0: |
- raise page_test.Failure('No interaction record was created.') |
- |
def CleanUp(self, tab): |
if tab.browser.platform.tracing_controller.is_tracing_running: |