summaryrefslogtreecommitdiffstats
path: root/core/tests/SvcMonitor/README
diff options
context:
space:
mode:
authorYuchao Zhou <superzhou@google.com>2015-09-16 22:53:10 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-16 22:53:10 +0000
commit88daa997fc609fdcbd1376657e3f18de4ca37193 (patch)
treee06c6f556df5452b7c5f5a912500d30c4ddbebe8 /core/tests/SvcMonitor/README
parent4873c549f7f4c45237a6f1185dd29216157965df (diff)
parentc38ffecc348687ae30c5fa2dc1761d9138b406b6 (diff)
downloadframeworks_base-88daa997fc609fdcbd1376657e3f18de4ca37193.zip
frameworks_base-88daa997fc609fdcbd1376657e3f18de4ca37193.tar.gz
frameworks_base-88daa997fc609fdcbd1376657e3f18de4ca37193.tar.bz2
am c38ffecc: Merge "Moving BTtraffic from experiment location to here" into cw-d-mr1-dev
* commit 'c38ffecc348687ae30c5fa2dc1761d9138b406b6': Moving BTtraffic from experiment location to here
Diffstat (limited to 'core/tests/SvcMonitor/README')
-rw-r--r--core/tests/SvcMonitor/README27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/tests/SvcMonitor/README b/core/tests/SvcMonitor/README
new file mode 100644
index 0000000..13a4380
--- /dev/null
+++ b/core/tests/SvcMonitor/README
@@ -0,0 +1,27 @@
+This Android service measures CPU usage of a program and an underlying system service it relies on.
+An example of this would be an android app XYZ communicates to some other device via Bluetooth. The
+SvcMonitor service can monitor the CPU usage of XYZ and com.android.bluetooth.
+
+Usage:
+
+To start the service:
+$ adb shell am startservice -a start \
+-e java XYZ -e hal com.android.bluetooth \
+com.google.android.experimental.svcmonitor/.SvcMonitor
+
+To stop the service:
+$ adb shell am startservice -a stop \
+com.google.android.experimental.svcmonitor/.SvcMonitor
+
+To stop the service config:
+$ adb shell am startservice -a change \
+-e java NewName -e hal NewService \
+com.google.android.experimental.svcmonitor/.SvcMonitor
+
+To monitor the data:
+$ adb logcat | grep XYZ
+
+Options:
+-e java NameOfProgram: any running process’s name.
+-e hal NameOfSysService: name of the system service the previous process relies on.
+--ei period: period between each measurement (frequency). Unit: ms, Default:1000, Min: 100