diff options
| author | 2021-03-19 21:12:21 +0000 | |
|---|---|---|
| committer | 2021-03-19 21:12:21 +0000 | |
| commit | a6926bd12f1c9d952fa4c287e1cfaed3376bae3c (patch) | |
| tree | 98994a5d7ea1fd0dcacc7c92b4435c45ccc59509 /cmds/dumpstate/dumpstate.cpp | |
| parent | 3870aae90e736093818c92c2942406a0fbc8c9b6 (diff) | |
| parent | d61cb088265de43d58a4e151b4c65cc4bebe64fc (diff) | |
Merge "Let dumpstate also call "cmd input_method tracing save-for-bugreport"" am: d17fa39d09 am: d61cb08826
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1636899
Change-Id: Ib7ebab86eaeb0618d51fd1bedb403c583bb81252
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 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) { |