mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-30 05:31:10 +00:00
Fix test function not called
Issue:#I796ER Signed-off-by: yang-19970325 <yangyang585@huawei.com> Change-Id: I5083ee693eefdcd158f6a45db2e656d483c40e87
This commit is contained in:
parent
ed9adb5e20
commit
da7a8106e9
@ -40,11 +40,8 @@ namespace OHOS {
|
||||
std::cout << "memcpy_s failed!";
|
||||
UNREACHABLE();
|
||||
}
|
||||
#ifndef ECMASCRIPT_SUPPORT_HEAPSAMPLING
|
||||
#define ECMASCRIPT_SUPPORT_HEAPSAMPLING
|
||||
DFXJSNApi::StartSampling(vm, key);
|
||||
DFXJSNApi::GetAllocationProfile(vm);
|
||||
#endif
|
||||
JSNApi::DestroyJSVM(vm);
|
||||
}
|
||||
}
|
||||
|
@ -39,12 +39,9 @@ namespace OHOS {
|
||||
std::cout << "memcpy_s failed !" << std::endl;
|
||||
UNREACHABLE();
|
||||
}
|
||||
#ifndef ECMASCRIPT_SUPPORT_DEBUGGER
|
||||
#define ECMASCRIPT_SUPPORT_DEBUGGER
|
||||
JSNApi::DebugOption debugOption = {(char *)data, true};
|
||||
JSNApi::StartDebugger(vm, debugOption, instanceId);
|
||||
JSNApi::StopDebugger(vm);
|
||||
#endif
|
||||
JSNApi::DestroyJSVM(vm);
|
||||
}
|
||||
}
|
||||
|
@ -43,10 +43,7 @@ namespace OHOS {
|
||||
if (key <= 0 || key > 1024) { // 1024 : 1M in size
|
||||
key = 1024; // 1024 : 1M in size
|
||||
}
|
||||
#ifndef ECMASCRIPT_SUPPORT_CPUPROFILER
|
||||
#define ECMASCRIPT_SUPPORT_CPUPROFILER
|
||||
DFXJSNApi::SetCpuSamplingInterval(vm, key);
|
||||
#endif
|
||||
JSNApi::DestroyJSVM(vm);
|
||||
}
|
||||
}
|
||||
|
@ -31,10 +31,7 @@ namespace OHOS {
|
||||
return;
|
||||
}
|
||||
std::string fileName(data, data + size);
|
||||
#ifndef ECMASCRIPT_SUPPORT_CPUPROFILER
|
||||
#define ECMASCRIPT_SUPPORT_CPUPROFILER
|
||||
DFXJSNApi::StartCpuProfilerForFile(vm, fileName);
|
||||
#endif
|
||||
JSNApi::DestroyJSVM(vm);
|
||||
}
|
||||
}
|
||||
|
@ -40,10 +40,7 @@ namespace OHOS {
|
||||
std::cout << "memcpy_s failed!";
|
||||
UNREACHABLE();
|
||||
}
|
||||
#ifndef ECMASCRIPT_SUPPORT_HEAPSAMPLING
|
||||
#define ECMASCRIPT_SUPPORT_HEAPSAMPLING
|
||||
DFXJSNApi::StartSampling(vm, key);
|
||||
#endif
|
||||
JSNApi::DestroyJSVM(vm);
|
||||
}
|
||||
}
|
||||
|
@ -40,11 +40,8 @@ namespace OHOS {
|
||||
std::cout << "memcpy_s failed!";
|
||||
UNREACHABLE();
|
||||
}
|
||||
#ifndef ECMASCRIPT_SUPPORT_HEAPSAMPLING
|
||||
#define ECMASCRIPT_SUPPORT_HEAPSAMPLING
|
||||
DFXJSNApi::StartSampling(vm, key);
|
||||
DFXJSNApi::StopSampling(vm);
|
||||
#endif
|
||||
JSNApi::DestroyJSVM(vm);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user