diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-03-16 15:03:36 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-03-16 15:03:36 -0700 |
commit | 29ba7e66804e91cbd05fed74893061b4971ec52b (patch) | |
tree | ca4939082344887f6879023a0a08801ab2092e3e /cmds/dumpstate | |
parent | 4108fbc299bb0c02293ff53fa670308ed81607f7 (diff) | |
parent | 354e034697d667fbab5d3f9af28704dca4ad7b12 (diff) | |
download | frameworks_base-29ba7e66804e91cbd05fed74893061b4971ec52b.zip frameworks_base-29ba7e66804e91cbd05fed74893061b4971ec52b.tar.gz frameworks_base-29ba7e66804e91cbd05fed74893061b4971ec52b.tar.bz2 |
resolved conflicts for merge of 354e0346 to master
Change-Id: I432f5f43aa1e19c6a474e8656fe0e3715828e8af
Diffstat (limited to 'cmds/dumpstate')
-rw-r--r-- | cmds/dumpstate/dumpstate.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index ba79c9f..aa95b35 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -124,6 +124,24 @@ static void dumpstate() { dump_file("VM TRACES AT LAST ANR", anr_traces_path); } + /* slow traces for slow operations */ + if (anr_traces_path[0] != 0) { + int tail = strlen(anr_traces_path)-1; + while (tail > 0 && anr_traces_path[tail] != '/') { + tail--; + } + int i = 0; + while (1) { + sprintf(anr_traces_path+tail+1, "slow%02d.txt", i); + if (stat(anr_traces_path, &st)) { + // No traces file at this index, done with the files. + break; + } + dump_file("VM TRACES WHEN SLOW", anr_traces_path); + i++; + } + } + dump_file("NETWORK DEV INFO", "/proc/net/dev"); dump_file("QTAGUID NETWORK INTERFACES INFO", "/proc/net/xt_qtaguid/iface_stat_all"); dump_file("QTAGUID CTRL INFO", "/proc/net/xt_qtaguid/ctrl"); |