mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Enable sampling profiler in Chrome Debug Server
Summary: Configure the runtime to allow use of the sampling profiler in the Chrome Debug Server. Note: this does not actually start and stop the profiler; this change just makes the sampling profiler available to the runtime. Changelog: [Internal] Reviewed By: neildhar Differential Revision: D39100833 fbshipit-source-id: 60d1f4e5ea2191fdf88b7f2e733557fa6128e205
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9e169da3ae
commit
4f486c7e4e
@@ -213,7 +213,9 @@ static void runDebuggerLoop(
|
||||
|
||||
static void runScript(const std::string &scriptSource, const std::string &url) {
|
||||
std::shared_ptr<fbhermes::HermesRuntime> runtime(
|
||||
fbhermes::makeHermesRuntime());
|
||||
fbhermes::makeHermesRuntime(::hermes::vm::RuntimeConfig::Builder()
|
||||
.withEnableSampleProfiling(true)
|
||||
.build()));
|
||||
auto adapter =
|
||||
std::make_unique<fbhermes::inspector::SharedRuntimeAdapter>(runtime);
|
||||
fbhermes::inspector::chrome::Connection conn(
|
||||
|
||||
Reference in New Issue
Block a user