summaryrefslogtreecommitdiffstats
path: root/tools/telemetry
diff options
context:
space:
mode:
authorbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-17 14:22:02 +0000
committerbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-17 14:22:02 +0000
commit3aac5ad09cdaa6f709821397955513652fb09c46 (patch)
treef870f90a777e358e9f7940a4f833411287349662 /tools/telemetry
parent0a18c62732562e28e5151a72a596ffa577d0330f (diff)
downloadchromium_src-3aac5ad09cdaa6f709821397955513652fb09c46.zip
chromium_src-3aac5ad09cdaa6f709821397955513652fb09c46.tar.gz
chromium_src-3aac5ad09cdaa6f709821397955513652fb09c46.tar.bz2
Telemetry / TCMalloc profiler: enable adb root when setting system properties.
Makes the tool more reliable and requires less external intervention. BUG=248785 Review URL: https://chromiumcodereview.appspot.com/15817016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/telemetry')
-rw-r--r--tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py
index e392cb0..a82eb98 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/tcmalloc_heap_profiler.py
@@ -32,6 +32,8 @@ class _TCMallocHeapProfilerAndroid(object):
def _SetDeviceProperties(self, properties):
device_configured = False
+ # This profiler requires adb root to set properties.
+ self._browser_backend.adb.Adb().EnableAdbRoot()
for values in properties.itervalues():
device_property = self._browser_backend.adb.RunShellCommand(
'getprop ' + values[0])