Merge "Move binder latency data logging to a background thread to improve performance of the main thread." am: 3af0c6a106 am: b24b15c6f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1942954 Change-Id: I3fd253bc0e023a3aa05222ef8c7105f26b6f95fe
This commit is contained in:
@@ -19,7 +19,6 @@ package com.android.internal.os;
|
|||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.os.Binder;
|
import android.os.Binder;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Looper;
|
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.util.ArrayMap;
|
import android.util.ArrayMap;
|
||||||
import android.util.Slog;
|
import android.util.Slog;
|
||||||
@@ -181,7 +180,7 @@ public class BinderLatencyObserver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Handler getHandler() {
|
public Handler getHandler() {
|
||||||
return new Handler(Looper.getMainLooper());
|
return BackgroundThread.getHandler();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user