Merge "Add API for writing WM trace to file"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a7fc664a0
@@ -540,6 +540,11 @@ interface IWindowManager
|
||||
*/
|
||||
void stopWindowTrace();
|
||||
|
||||
/**
|
||||
* If window tracing is active, saves the window trace to file, otherwise does nothing
|
||||
*/
|
||||
void saveWindowTraceToFile();
|
||||
|
||||
/**
|
||||
* Returns true if window trace is enabled.
|
||||
*/
|
||||
|
||||
@@ -5679,6 +5679,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
mWindowTracing.stopTrace(null /* printwriter */);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveWindowTraceToFile() {
|
||||
mWindowTracing.saveForBugreport(null /* printwriter */);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWindowTraceEnabled() {
|
||||
return mWindowTracing.isEnabled();
|
||||
|
||||
Reference in New Issue
Block a user