summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2010-10-07 13:38:09 -0700
committerWink Saville <wink@google.com>2010-10-22 09:48:19 -0700
commit2f791fd868043cf3de738300dceed324ea20842a (patch)
tree754fbd7e43f8a4c0fbeac7a34734c714aea9cb2a /cmds
parenteb95b0877aa386938ed20e9429a211eac8b8b805 (diff)
downloadframeworks_base-2f791fd868043cf3de738300dceed324ea20842a.zip
frameworks_base-2f791fd868043cf3de738300dceed324ea20842a.tar.gz
frameworks_base-2f791fd868043cf3de738300dceed324ea20842a.tar.bz2
Change dumpstate so the logs use threadtime instead of time as the default.
The threadtime option display both the pid and tid which can assist pinpointing bugs. Change-Id: Ib4620d3534a59b291507b757352f9fecb06f7cef
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/dumpstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index 3c0dee4..d309ef9 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -84,7 +84,7 @@ static void dumpstate() {
LOGI("wrote screenshot: %s\n", screenshot_path);
}
- run_command("SYSTEM LOG", 20, "logcat", "-v", "time", "-d", "*:v", NULL);
+ run_command("SYSTEM LOG", 20, "logcat", "-v", "threadtime", "-d", "*:v", NULL);
/* show the traces we collected in main(), if that was done */
if (dump_traces_path != NULL) {
@@ -104,8 +104,8 @@ static void dumpstate() {
}
// dump_file("EVENT LOG TAGS", "/etc/event-log-tags");
- run_command("EVENT LOG", 20, "logcat", "-b", "events", "-v", "time", "-d", "*:v", NULL);
- run_command("RADIO LOG", 20, "logcat", "-b", "radio", "-v", "time", "-d", "*:v", NULL);
+ run_command("EVENT LOG", 20, "logcat", "-b", "events", "-v", "threadtime", "-d", "*:v", NULL);
+ run_command("RADIO LOG", 20, "logcat", "-b", "radio", "-v", "threadtime", "-d", "*:v", NULL);
run_command("NETWORK INTERFACES", 10, "netcfg", NULL);
dump_file("NETWORK ROUTES", "/proc/net/route");