Adding UIManager performance counters in Fabric

Reviewed By: fkgozali

Differential Revision: D8381255

fbshipit-source-id: d817557c8a3033d0d7ae47e5ea0a21d224279e29
This commit is contained in:
David Vacca
2018-06-14 18:36:34 -07:00
committed by Facebook Github Bot
parent e773b36990
commit d62e432446
4 changed files with 33 additions and 4 deletions

View File

@@ -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();