add name of command for systrace for easier debugging (#54328)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54328

changelog: [internal]

makes debugging easier if there is name of command.

Reviewed By: christophpurrer, javache

Differential Revision: D85784113

fbshipit-source-id: 14f89ea8b8401dce2dc84d14caaecc6cacda04b2
This commit is contained in:
Samuel Susla
2025-10-30 06:04:42 -07:00
committed by meta-codesync[bot]
parent f9754d3459
commit 71f5c744db
@@ -283,8 +283,8 @@ void Scheduler::uiManagerDidDispatchCommand(
const std::shared_ptr<const ShadowNode>& shadowNode,
const std::string& commandName,
const folly::dynamic& args) {
TraceSection s("Scheduler::uiManagerDispatchCommand");
TraceSection s(
"Scheduler::uiManagerDispatchCommand", "commandName", commandName);
if (delegate_ != nullptr) {
auto shadowView = ShadowView(*shadowNode);
runtimeScheduler_->scheduleRenderingUpdate(