Skip to content

Commit 71f5c74

Browse files
sammy-SCmeta-codesync[bot]
authored andcommitted
add name of command for systrace for easier debugging (#54328)
Summary: Pull Request resolved: #54328 changelog: [internal] makes debugging easier if there is name of command. Reviewed By: christophpurrer, javache Differential Revision: D85784113 fbshipit-source-id: 14f89ea8b8401dce2dc84d14caaecc6cacda04b2
1 parent f9754d3 commit 71f5c74

File tree

1 file changed

+2
-2
lines changed
  • packages/react-native/ReactCommon/react/renderer/scheduler

1 file changed

+2
-2
lines changed

packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ void Scheduler::uiManagerDidDispatchCommand(
283283
const std::shared_ptr<const ShadowNode>& shadowNode,
284284
const std::string& commandName,
285285
const folly::dynamic& args) {
286-
TraceSection s("Scheduler::uiManagerDispatchCommand");
287-
286+
TraceSection s(
287+
"Scheduler::uiManagerDispatchCommand", "commandName", commandName);
288288
if (delegate_ != nullptr) {
289289
auto shadowView = ShadowView(*shadowNode);
290290
runtimeScheduler_->scheduleRenderingUpdate(

0 commit comments

Comments
 (0)