Adding UIManager performance counters in Fabric

Reviewed By: fkgozali

Differential Revision: D8381255

fbshipit-source-id: d817557c8a3033d0d7ae47e5ea0a21d224279e29
This commit is contained in:
David Vacca authored and Facebook Github Bot committed 2018-06-14 18:47:18 -07:00
1 parent e773b36990
commit d62e432446
4 files changed
+33 -4

No files matched your search

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