Add tracing for loading .so files during startup

Summary: During RN's startup, libfbjs-slow.so file is loaded when it is injected into FBReactInstanceHolder. This initialization takes a while, and has usually been showing up as a blank under `FBReactInstanceHolder`. By adding Systrace and QPL, we can estimate how long this takes. Traces will also be useful as we start optimizing this.

Reviewed By: ejanzer

Differential Revision: D5950803

fbshipit-source-id: 711c1d6c16e0f3d5c2dc23606be4e73880152b17
This commit is contained in:
Ram N 2018-10-31 20:03:20 -07:00 committed by Facebook Github Bot
parent 309f85ace2
commit b3b67499dd
1 changed files with 2 additions and 0 deletions

View File

@ -89,4 +89,6 @@ public enum ReactMarkerConstants {
REGISTER_JS_SEGMENT_STOP,
VM_INIT,
ON_FRAGMENT_CREATE,
JAVASCRIPT_EXECUTOR_FACTORY_INJECT_START,
JAVASCRIPT_EXECUTOR_FACTORY_INJECT_END,
}