mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
add number of instructions to systrace (#45384)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45384 changelog: [internal] add a little more information to the mounting instructions block Reviewed By: javache, rubennorte, mdvacca Differential Revision: D59631537 fbshipit-source-id: 140ba1834172686998c51a9645ea1e66fff1879d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
47261bfb79
commit
7d7d403ecf
+5
-1
@@ -95,9 +95,13 @@ final class IntBufferBatchMountItem implements BatchMountItem {
|
||||
int type = rawType & ~INSTRUCTION_FLAG_MULTIPLE;
|
||||
int numInstructions = ((rawType & INSTRUCTION_FLAG_MULTIPLE) != 0 ? mIntBuffer[i++] : 1);
|
||||
|
||||
String[] args = {"numInstructions", String.valueOf(numInstructions)};
|
||||
|
||||
Systrace.beginSection(
|
||||
Systrace.TRACE_TAG_REACT_JAVA_BRIDGE,
|
||||
"IntBufferBatchMountItem::mountInstructions::" + nameForInstructionString(type));
|
||||
"IntBufferBatchMountItem::mountInstructions::" + nameForInstructionString(type),
|
||||
args,
|
||||
args.length);
|
||||
for (int k = 0; k < numInstructions; k++) {
|
||||
if (type == INSTRUCTION_CREATE) {
|
||||
String componentName = getFabricComponentName((String) mObjBuffer[j++]);
|
||||
|
||||
Reference in New Issue
Block a user