mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-02 23:05:01 +08:00
Adding UIManager performance counters in Fabric
Reviewed By: fkgozali Differential Revision: D8381255 fbshipit-source-id: d817557c8a3033d0d7ae47e5ea0a21d224279e29
This commit is contained in:
committed by
Facebook Github Bot
parent
e773b36990
commit
d62e432446
@@ -81,7 +81,7 @@ import javax.annotation.Nullable;
|
||||
*/
|
||||
@ReactModule(name = UIManagerModule.NAME)
|
||||
public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter, UIManager {
|
||||
OnBatchCompleteListener, LifecycleEventListener, UIManager {
|
||||
|
||||
/**
|
||||
* Enables lazy discovery of a specific {@link ViewManager} by its name.
|
||||
@@ -286,6 +286,11 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void profileNextBatch() {
|
||||
mUIImplementation.profileNextBatch();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Long> getPerformanceCounters() {
|
||||
return mUIImplementation.getProfiledBatchPerfCounters();
|
||||
|
||||
Reference in New Issue
Block a user