mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
add JS->Java Bridge traffic
Reviewed By: achen1 Differential Revision: D5740501 fbshipit-source-id: 3a88cd95d3a58aac24968e577f4eb3096d47d4ec
This commit is contained in:
committed by
Facebook Github Bot
parent
4fc9e20fce
commit
12f123d3e4
@@ -9,17 +9,17 @@
|
||||
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.systrace.SystraceMessage;
|
||||
|
||||
import static com.facebook.infer.annotation.Assertions.assertNotNull;
|
||||
import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
|
||||
|
||||
import com.facebook.debug.holder.PrinterHolder;
|
||||
import com.facebook.debug.tags.ReactDebugOverlayTags;
|
||||
import com.facebook.infer.annotation.Assertions;
|
||||
import com.facebook.systrace.SystraceMessage;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class JavaMethodWrapper implements NativeModule.NativeMethod {
|
||||
|
||||
private static abstract class ArgumentExtractor<T> {
|
||||
@@ -332,6 +332,12 @@ public class JavaMethodWrapper implements NativeModule.NativeMethod {
|
||||
SystraceMessage.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "callJavaModuleMethod")
|
||||
.arg("method", traceName)
|
||||
.flush();
|
||||
PrinterHolder.getPrinter()
|
||||
.logMessage(
|
||||
ReactDebugOverlayTags.BRIDGE_CALLS,
|
||||
"JS->Java: %s.%s()",
|
||||
mModuleWrapper.getName(),
|
||||
mMethod.getName());
|
||||
try {
|
||||
if (!mArgumentsProcessed) {
|
||||
processArguments();
|
||||
|
||||
Reference in New Issue
Block a user