Add more information in ending Marker Tags

Summary: Added more information to ending tags so that they can be connected with the starting tags.

Reviewed By: mdvacca

Differential Revision: D7121038

fbshipit-source-id: 72d51952955e22a4c8d66c4f9e75a3fd9d34df7f
This commit is contained in:
Ram N 2018-11-30 11:28:28 -08:00 committed by Facebook Github Bot
parent 8d68a3e9f1
commit fe97458b03
2 changed files with 4 additions and 4 deletions

View File

@ -141,10 +141,10 @@ public class JavaModuleWrapper {
try { try {
return Arguments.makeNativeMap(map); return Arguments.makeNativeMap(map);
} finally { } finally {
ReactMarker.logMarker(CONVERT_CONSTANTS_END); ReactMarker.logMarker(CONVERT_CONSTANTS_END, moduleName);
Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE); Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
ReactMarker.logMarker(GET_CONSTANTS_END); ReactMarker.logMarker(GET_CONSTANTS_END, moduleName);
SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush(); SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush();
} }
} }

View File

@ -192,7 +192,7 @@ public class ModuleHolder {
doInitialize(module); doInitialize(module);
} }
} finally { } finally {
ReactMarker.logMarker(CREATE_MODULE_END, mInstanceKey); ReactMarker.logMarker(CREATE_MODULE_END, mName ,mInstanceKey);
SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush(); SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush();
} }
return module; return module;
@ -222,7 +222,7 @@ public class ModuleHolder {
} }
} }
} finally { } finally {
ReactMarker.logMarker(ReactMarkerConstants.INITIALIZE_MODULE_END, mInstanceKey); ReactMarker.logMarker(ReactMarkerConstants.INITIALIZE_MODULE_END, mName, mInstanceKey);
SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush(); SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush();
} }
} }