mirror of
https://gitee.com/openharmony/arkcompiler_toolchain
synced 2025-02-17 07:38:22 +00:00
[Bug]: release应用无法调优
desc: release应用无法调优 solu: runtimeImpl和调优相关,不要放在debugApp才初始化 issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/I8LFV8 Signed-off-by: wanghuan2022 <wanghuan80@huawei.com> Change-Id: I344e4f16d72097902421bf8a0091ad9d779b0cee
This commit is contained in:
parent
8013ffa030
commit
b1e2bd1e48
@ -151,12 +151,13 @@ Dispatcher::Dispatcher(const EcmaVM *vm, ProtocolChannel *channel)
|
||||
dispatchers_["Tracing"] =
|
||||
std::make_unique<TracingImpl::DispatcherImpl>(channel, std::move(tracing));
|
||||
|
||||
auto runtime = std::make_unique<RuntimeImpl>(vm, channel);
|
||||
dispatchers_["Runtime"] =
|
||||
std::make_unique<RuntimeImpl::DispatcherImpl>(channel, std::move(runtime));
|
||||
|
||||
// only debugApp need to initialize debugger
|
||||
if (vm->GetJsDebuggerManager()->IsDebugApp()) {
|
||||
auto runtime = std::make_unique<RuntimeImpl>(vm, channel);
|
||||
auto debugger = std::make_unique<DebuggerImpl>(vm, channel, runtime.get());
|
||||
dispatchers_["Runtime"] =
|
||||
std::make_unique<RuntimeImpl::DispatcherImpl>(channel, std::move(runtime));
|
||||
dispatchers_["Debugger"] =
|
||||
std::make_unique<DebuggerImpl::DispatcherImpl>(channel, std::move(debugger));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user