mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add Time Series History and Renderer for rendering time series chart (#39480)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39480 Changelog: [Internal] - Separate the time series data and renderer logic from performance monitor overlay so that it can be swapped later to C++ for cross-platform support. Reviewed By: rshest Differential Revision: D49321748 fbshipit-source-id: fbb781ef710b134130bfd80dada00748e73d5f24
This commit is contained in:
committed by
Facebook GitHub Bot
parent
30b9b01e68
commit
c05448bf5c
+10
@@ -58,4 +58,14 @@ public class UiThreadUtil {
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -126,6 +126,10 @@ public class DevToolsReactPerfLogger implements ReactMarker.FabricMarkerListener
|
||||
return getCounter(FABRIC_LAYOUT_AFFECTED_NODES);
|
||||
}
|
||||
|
||||
public long getAffectedLayoutNodesCountTime() {
|
||||
return getTimestamp(FABRIC_LAYOUT_AFFECTED_NODES);
|
||||
}
|
||||
|
||||
public long getBatchExecutionStart() {
|
||||
return getTimestamp(FABRIC_BATCH_EXECUTION_START);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user