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

Unified Diff: build/android/device_stats_monitor.py

Issue 26402002: [Android] Some clean up in pylib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove shebang lines Created 7 years, 2 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
« no previous file with comments | « build/all_android.gyp ('k') | build/android/pylib/android_commands.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/device_stats_monitor.py
diff --git a/build/android/device_stats_monitor.py b/build/android/device_stats_monitor.py
deleted file mode 100755
index 23506a889977f4ab022f9001b3ac2e80e0bd39d5..0000000000000000000000000000000000000000
--- a/build/android/device_stats_monitor.py
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2012 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.
-
-"""Provides iotop/top style profiling for android.
-
-Usage:
- ./device_stats_monitor.py --hz=20 --duration=5 --outfile=/tmp/foo
-"""
-
-import optparse
-import os
-import sys
-import time
-
-from pylib import android_commands
-from pylib import device_stats_monitor
-from pylib.utils import test_options_parser
-
-
-def main(argv):
- option_parser = optparse.OptionParser()
- option_parser.add_option('--hz', type='int', default=20,
- help='Number of samples/sec.')
- option_parser.add_option('--duration', type='int', default=5,
- help='Seconds to monitor.')
- option_parser.add_option('--outfile', default='/tmp/devicestatsmonitor',
- help='Location to start output file.')
- test_options_parser.AddBuildTypeOption(option_parser)
- options, args = option_parser.parse_args(argv)
-
- monitor = device_stats_monitor.DeviceStatsMonitor(
- android_commands.AndroidCommands(), options.hz, options.build_type)
- monitor.Start()
- print 'Waiting for %d seconds while profiling.' % options.duration
- time.sleep(options.duration)
- url = monitor.StopAndCollect(options.outfile)
- print 'View results in browser at %s' % url
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « build/all_android.gyp ('k') | build/android/pylib/android_commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698