Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,14 @@ public static void runOnUiThread(Runnable runnable, long delayInMs) {
}
sMainHandler.postDelayed(runnable, delayInMs);
}

/** Removes the given {@code Runnable} on the UI thread. */
public static void removeOnUiThread(Runnable runnable) {
synchronized (UiThreadUtil.class) {
if (sMainHandler == null) {
sMainHandler = new Handler(Looper.getMainLooper());
}
}
sMainHandler.removeCallbacks(runnable);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public int getAffectedLayoutNodesCount() {
return getCounter(FABRIC_LAYOUT_AFFECTED_NODES);
}

public long getAffectedLayoutNodesCountTime() {
return getTimestamp(FABRIC_LAYOUT_AFFECTED_NODES);
}

public long getBatchExecutionStart() {
return getTimestamp(FABRIC_BATCH_EXECUTION_START);
}
Expand Down