From bc7ec03670c0b61cf667f67bdeebf6877fa87c5a Mon Sep 17 00:00:00 2001 From: Alexander Blom Date: Mon, 6 Jun 2016 11:49:07 -0700 Subject: [PATCH] Add better markers for getConfig Reviewed By: astreet Differential Revision: D3358278 fbshipit-source-id: 16668cd33a42a120c2de88be4cb4a1c8d0d5a13c --- ReactCommon/cxxreact/ModuleRegistry.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ReactCommon/cxxreact/ModuleRegistry.cpp b/ReactCommon/cxxreact/ModuleRegistry.cpp index adfdf1dbce5..a7c09bca368 100644 --- a/ReactCommon/cxxreact/ModuleRegistry.cpp +++ b/ReactCommon/cxxreact/ModuleRegistry.cpp @@ -39,6 +39,7 @@ std::vector ModuleRegistry::moduleNames() { } folly::dynamic ModuleRegistry::getConfig(const std::string& name) { + SystraceSection s("getConfig", "module", name); auto it = modulesByName_.find(name); if (it == modulesByName_.end()) { return nullptr; @@ -51,8 +52,7 @@ folly::dynamic ModuleRegistry::getConfig(const std::string& name) { folly::dynamic config = folly::dynamic::array(name); { - SystraceSection s("getConfig constants", - "module", name); + SystraceSection s("getConstants"); folly::dynamic constants = module->getConstants(); if (constants.isObject() && constants.size() > 0) { config.push_back(std::move(constants)); @@ -60,8 +60,7 @@ folly::dynamic ModuleRegistry::getConfig(const std::string& name) { } { - SystraceSection s("getConfig methods", - "module", name); + SystraceSection s("getMethods"); std::vector methods = module->getMethods(); folly::dynamic methodNames = folly::dynamic::array;