Split dumpsys into critical and non-critical sections.
Order in which we report stats in bugreport can disrupt cpu and memory
stats. This CL sorts the bugreport process
from least impactful to most impactful to try and keep the
system stats as close to its initial state as possible throughout the BR (eg.
things like dumpsys meminfo should run before dumping thread stacks)
BUG: 26639621
Change-Id: I29dccfd423d83a6a69b7e025d45cb9cebfc41cc4
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index 6dfd7a8..b301058 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -777,7 +777,7 @@
}
void create_parent_dirs(const char *path) {
- char *chp = (char*) path;
+ char *chp = const_cast<char *> (path);
/* skip initial slash */
if (chp[0] == '/')