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:
Samuel Susla
2024-07-12 04:10:31 -07:00
committed by Facebook GitHub Bot
parent 47261bfb79
commit 7d7d403ecf
@@ -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++]);