/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.react.bridge;

import com.facebook.soloader.SoLoader;

public class ReactBridge {
  private static boolean sDidInit = false;
  public static void staticInit() {
    // No locking required here, worst case we'll call into SoLoader twice
    // which will do its own locking internally
    if (!sDidInit) {
      SoLoader.loadLibrary("reactnativejni");
      sDidInit = true;
    }
  }
}

@@ -230,38 +230,152 @@
 ort 
-com.facebook.soloader.SoLoader
+static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;%0A%0Aimport com.facebook.soloader.SoLoader;%0Aimport com.facebook.systrace.Systrace
 ;%0A%0Ap
@@ -619,24 +619,129 @@
 sDidInit) %7B%0A
+      Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, %22ReactBridge.staticInit::load:reactnativejni%22);%0A
       SoLoad
@@ -797,16 +797,72 @@
 = true;%0A
+      Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);%0A
     %7D%0A  

Add tracing to when SO libraries are loaded