diff options
| author | 2021-03-19 21:54:30 +0000 | |
|---|---|---|
| committer | 2021-03-19 21:54:30 +0000 | |
| commit | a216ecb3437ca410906e3c741a0873e1f5419a7e (patch) | |
| tree | 0d28a0d6c43e43dbf5d3a5037227a6f04696a6b6 /cmds/dumpstate/dumpstate.cpp | |
| parent | b40ac209ae704c2e3d8958983bd5dafcd30b4b5b (diff) | |
| parent | a6926bd12f1c9d952fa4c287e1cfaed3376bae3c (diff) | |
Merge "Let dumpstate also call "cmd input_method tracing save-for-bugreport"" am: d17fa39d09 am: d61cb08826 am: a6926bd12f
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1636899
Change-Id: Ibed214c1499d8100cd12b46c2948139b61625f9c
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index a999c9f22e..7ab2a8d03f 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -3027,11 +3027,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) { |