Merge "Improve latency of IME tracing"
This commit is contained in:
@@ -280,7 +280,7 @@ class IInputMethodWrapper extends IInputMethod.Stub
|
||||
}
|
||||
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
mCaller.executeOrSendMessage(mCaller.obtainMessageOOOO(DO_DUMP,
|
||||
mCaller.getHandler().sendMessageAtFrontOfQueue(mCaller.obtainMessageOOOO(DO_DUMP,
|
||||
fd, fout, args, latch));
|
||||
try {
|
||||
if (!latch.await(5, TimeUnit.SECONDS)) {
|
||||
|
||||
@@ -1713,7 +1713,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
mSettings, context);
|
||||
mMenuController = new InputMethodMenuController(this);
|
||||
|
||||
mTracingThread = new HandlerThread("android.tracing", Process.THREAD_PRIORITY_BACKGROUND);
|
||||
mTracingThread = new HandlerThread("android.tracing", Process.THREAD_PRIORITY_FOREGROUND);
|
||||
mTracingThread.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user