mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add QPL marker to track time it takes to load .so file from RN
Summary: Simple diff that adds QPL marker to track time it takes to load .so file from RN Reviewed By: fkgozali Differential Revision: D13845379 fbshipit-source-id: 6c2272605ba3fb08ab8ebce867f84c6a488438d0
This commit is contained in:
committed by
Facebook Github Bot
parent
ec9fe48819
commit
10b521815c
@@ -27,7 +27,9 @@ public class ReactBridge {
|
||||
|
||||
sLoadStartTime = SystemClock.uptimeMillis();
|
||||
Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "ReactBridge.staticInit::load:reactnativejni");
|
||||
ReactMarker.logMarker(ReactMarkerConstants.LOAD_REACT_NATIVE_SO_FILE_START);
|
||||
SoLoader.loadLibrary("reactnativejni");
|
||||
ReactMarker.logMarker(ReactMarkerConstants.LOAD_REACT_NATIVE_SO_FILE_END);
|
||||
Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
sLoadEndTime = SystemClock.uptimeMillis();
|
||||
}
|
||||
|
||||
@@ -92,4 +92,6 @@ public enum ReactMarkerConstants {
|
||||
ON_FRAGMENT_CREATE,
|
||||
JAVASCRIPT_EXECUTOR_FACTORY_INJECT_START,
|
||||
JAVASCRIPT_EXECUTOR_FACTORY_INJECT_END,
|
||||
LOAD_REACT_NATIVE_SO_FILE_START,
|
||||
LOAD_REACT_NATIVE_SO_FILE_END,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user