| Index: tools/profile_chrome/perf_controller.py
|
| diff --git a/tools/profile_chrome/perf_controller.py b/tools/profile_chrome/perf_controller.py
|
| index 245435ee85d379532af04c277b82262840f3dd21..6a3b92076bef9cc12d74b1a3aa9b16f364cc8c5a 100644
|
| --- a/tools/profile_chrome/perf_controller.py
|
| +++ b/tools/profile_chrome/perf_controller.py
|
| @@ -50,8 +50,9 @@ class _PerfProfiler(object):
|
| self._device.old_interface, prefix='perf_output')
|
| self._log_file = tempfile.TemporaryFile()
|
|
|
| - device_param = (['-s', self._device.old_interface.GetDevice()]
|
| - if self._device.old_interface.GetDevice() else [])
|
| + # TODO(jbudorick) Look at providing a way to unhandroll this once the
|
| + # adb rewrite has fully landed.
|
| + device_param = (['-s', str(self._device)] if str(self._device) else [])
|
| cmd = ['adb'] + device_param + \
|
| ['shell', perf_binary, 'record',
|
| '--output', self._output_file.name] + _PERF_OPTIONS
|
|
|