mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 17:30:38 +08:00
Add more perf counters
Reviewed By: AaaChiuuu Differential Revision: D5624307 fbshipit-source-id: a7fd744b7a1989f35efe99d7471337a411870934
This commit is contained in:
committed by
Facebook Github Bot
parent
3c12faf01c
commit
caaf7fd417
@@ -33,7 +33,6 @@ import com.facebook.react.uimanager.debug.NotThreadSafeViewHierarchyUpdateDebugL
|
||||
import com.facebook.react.uimanager.events.EventDispatcher;
|
||||
import com.facebook.systrace.Systrace;
|
||||
import com.facebook.systrace.SystraceMessage;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import javax.annotation.Nullable;
|
||||
@@ -160,11 +159,9 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String,Double> getPerformanceCounters() {
|
||||
Map<String,Double> perfMap = new HashMap<>();
|
||||
perfMap.put("LayoutCount", mUIImplementation.getLayoutCount());
|
||||
perfMap.put("LayoutTimer", mUIImplementation.getLayoutTimer());
|
||||
return perfMap;
|
||||
@Override
|
||||
public Map<String, Long> getPerformanceCounters() {
|
||||
return mUIImplementation.getProfiledBatchPerfCounters();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user