Skip to content

Commit

Permalink
dumpstate: add logcat -b all -S
Browse files Browse the repository at this point in the history
(cherry pick from commit e3c4df9)

- For those that are proud to call themselves logspam police
- Every time someone declares that something is too chatty, or that
  they lost their logs because they were declared too chatty and
  their associated logs were aggresively pruned we generally
  ask them to report the logger statistics to pinpoint what software
  product that is the elephant in the room.
- Every time we want to spawn a new 'stop being so spammy' bug spawned
  off a bugreport collected for another purpose, we *wish* we had the
  logger statistics to help add gravitas to the claim that some piece
  of software is the top, or near the top, polluter.

Bug: 22351810
Change-Id: Ifae33cd21d0ae2917a3b4381502d723725b1701c
  • Loading branch information
Mark Salyzyn committed Aug 11, 2015
1 parent 62ec2dd commit ecc0763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmds/dumpstate/dumpstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ static void dumpstate() {
}
run_command("RADIO LOG", timeout / 1000, "logcat", "-b", "radio", "-v", "threadtime", "-d", "*:v", NULL);

run_command("LOG STATISTICS", 10, "logcat", "-b", "all", "-S", NULL);

/* show the traces we collected in main(), if that was done */
if (dump_traces_path != NULL) {
dump_file("VM TRACES JUST NOW", dump_traces_path);
Expand Down

0 comments on commit ecc0763

Please sign in to comment.