diff --git a/ReactCommon/cxxreact/ModuleRegistry.cpp b/ReactCommon/cxxreact/ModuleRegistry.cpp index 17f17746984809..f897bc300ad29e 100644 --- a/ReactCommon/cxxreact/ModuleRegistry.cpp +++ b/ReactCommon/cxxreact/ModuleRegistry.cpp @@ -41,6 +41,7 @@ void ModuleRegistry::updateModuleNamesFromIndex(size_t index) { } void ModuleRegistry::registerModules(std::vector> modules) { + SystraceSection s_("ModuleRegistry::registerModules"); if (modules_.empty() && unknownModules_.empty()) { modules_ = std::move(modules); } else { @@ -67,6 +68,7 @@ void ModuleRegistry::registerModules(std::vector> } std::vector ModuleRegistry::moduleNames() { + SystraceSection s_("ModuleRegistry::moduleNames"); std::vector names; for (size_t i = 0; i < modules_.size(); i++) { std::string name = normalizeName(modules_[i]->getName()); @@ -106,12 +108,12 @@ folly::Optional ModuleRegistry::getConfig(const std::string& name) folly::dynamic config = folly::dynamic::array(name); { - SystraceSection s_("getConstants"); + SystraceSection s_("ModuleRegistry::getConstants", "module", name); config.push_back(module->getConstants()); } { - SystraceSection s_("getMethods"); + SystraceSection s_("ModuleRegistry::getMethods", "module", name); std::vector methods = module->getMethods(); folly::dynamic methodNames = folly::dynamic::array;