fix enable checks to check use action in LatencyTracker am: ca9e12eec9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22192237 Change-Id: If68390e0d3fda7d47ff8424a79ae3e1409015440 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -471,7 +471,7 @@ public class LatencyTracker {
|
||||
*/
|
||||
public void onActionStart(@Action int action, String tag) {
|
||||
synchronized (mLock) {
|
||||
if (!isEnabled()) {
|
||||
if (!isEnabled(action)) {
|
||||
return;
|
||||
}
|
||||
// skip if the action is already instrumenting.
|
||||
@@ -495,7 +495,7 @@ public class LatencyTracker {
|
||||
*/
|
||||
public void onActionEnd(@Action int action) {
|
||||
synchronized (mLock) {
|
||||
if (!isEnabled()) {
|
||||
if (!isEnabled(action)) {
|
||||
return;
|
||||
}
|
||||
Session session = mSessions.get(action);
|
||||
|
||||
Reference in New Issue
Block a user