| Index: tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
|
| index 903d63d73e0bc04b826f5c52e0f4087e0e700a96..56cb79720ae9aad9bfdc773c600c6c74683f7ebd 100644
|
| --- a/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
|
| +++ b/tools/telemetry/telemetry/core/platform/profiler/strace_profiler.py
|
| @@ -202,7 +202,7 @@ class StraceProfiler(profiler.Profiler):
|
| super(StraceProfiler, self).__init__(
|
| browser_backend, platform_backend, output_path, state)
|
| assert self._browser_backend.supports_tracing
|
| - self._browser_backend.StartTracing(None, 10)
|
| + self._browser_backend.browser.StartTracing(None, timeout=10)
|
| process_output_file_map = self._GetProcessOutputFileMap()
|
| self._process_profilers = []
|
| self._output_file = output_path + '.json'
|
| @@ -241,8 +241,8 @@ class StraceProfiler(profiler.Profiler):
|
| for single_process in self._process_profilers:
|
| out_json.extend(single_process.CollectProfile())
|
|
|
| - timeline_data = self._browser_backend.StopTracing()
|
| - timeline_model = model.TimelineModel(timeline_data)
|
| + trace_value = self._browser_backend.browser.StopTracing()
|
| + timeline_model = model.TimelineModel(trace_value)
|
| out_json.extend(_GenerateTraceMetadata(timeline_model))
|
|
|
| with open(self._output_file, 'w') as f:
|
|
|