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:
David Vacca
2019-01-28 12:56:56 -08:00
committed by Facebook Github Bot
parent ec9fe48819
commit 10b521815c
2 changed files with 4 additions and 0 deletions
@@ -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,
}