mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix broken profiling on builds with debugger enabled (#39517)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39517 Fixes broken profiling on builds with debugger enabled. Changelog: [internal] Reviewed By: luluwu2032 Differential Revision: D49370067 fbshipit-source-id: eb76dcda69856bc0828c92513e88e86168d1805a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8498976b55
commit
77df5a9c29
@@ -129,6 +129,8 @@ std::unique_ptr<jsi::Runtime> HermesInstance::createJSRuntime(
|
||||
std::unique_ptr<HermesRuntime> hermesRuntime =
|
||||
hermes::makeHermesRuntime(runtimeConfigBuilder.build());
|
||||
|
||||
jsi::addNativeTracingHooks(*hermesRuntime);
|
||||
|
||||
#ifdef HERMES_ENABLE_DEBUGGER
|
||||
std::unique_ptr<DecoratedRuntime> decoratedRuntime =
|
||||
std::make_unique<DecoratedRuntime>(
|
||||
@@ -136,8 +138,6 @@ std::unique_ptr<jsi::Runtime> HermesInstance::createJSRuntime(
|
||||
return decoratedRuntime;
|
||||
#endif
|
||||
|
||||
jsi::addNativeTracingHooks(*hermesRuntime);
|
||||
|
||||
return hermesRuntime;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user