summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2021-03-19 20:06:39 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-03-19 20:06:39 +0000
commitd17fa39d091a27041a29b2652463f8a1fe15e0f1 (patch)
tree98994a5d7ea1fd0dcacc7c92b4435c45ccc59509
parent2a78ffe7579c1ee72cf05ef80253d99619da1095 (diff)
parent02b1d2c70b2f4703a9dd51ba69d78604d66916e1 (diff)
Merge "Let dumpstate also call "cmd input_method tracing save-for-bugreport""
-rw-r--r--cmds/dumpstate/dumpstate.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index f5536970cc..8fd05fb47d 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -3024,11 +3024,14 @@ void Dumpstate::MaybeSnapshotSystemTrace() {
}
void Dumpstate::MaybeSnapshotWinTrace() {
- RunCommand(
- // Empty name because it's not intended to be classified as a bugreport section.
- // Actual tracing files can be found in "/data/misc/wmtrace/" in the bugreport.
- "", {"cmd", "window", "tracing", "save-for-bugreport"},
- CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
+ // Currently WindowManagerService and InputMethodManagerSerivice support WinScope protocol.
+ for (const auto& service : {"window", "input_method"}) {
+ RunCommand(
+ // Empty name because it's not intended to be classified as a bugreport section.
+ // Actual tracing files can be found in "/data/misc/wmtrace/" in the bugreport.
+ "", {"cmd", service, "tracing", "save-for-bugreport"},
+ CommandOptions::WithTimeout(10).Always().DropRoot().RedirectStderr().Build());
+ }
}
void Dumpstate::onUiIntensiveBugreportDumpsFinished(int32_t calling_uid) {