Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: tools/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
diff --git a/tools/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py b/tools/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
deleted file mode 100644
index 83adc5980c442c1db81e6fe8e70b542b976d4a01..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Android-specific, installs pre-built profilers."""
-
-import logging
-import os
-
-from telemetry.internal.util import binary_manager
-from telemetry import decorators
-
-_DEVICE_PROFILER_DIR = '/data/local/tmp/profilers/'
-
-
-def GetDevicePath(profiler_binary):
- return os.path.join(_DEVICE_PROFILER_DIR, os.path.basename(profiler_binary))
-
-
-@decorators.Cache
-def InstallOnDevice(device, profiler_binary):
- arch_name = device.GetABI()
- host_path = binary_manager.FetchPath(profiler_binary, arch_name, 'android')
- if not host_path:
- logging.error('Profiler binary "%s" not found. Could not be installed',
- host_path)
- return False
-
- device_binary_path = GetDevicePath(profiler_binary)
- device.PushChangedFiles([(host_path, device_binary_path)])
- device.RunShellCommand('chmod 777 ' + device_binary_path)
- return True

Powered by Google App Engine
This is Rietveld 408576698