Fix test function not called

Issue:#I796ER

Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: I5083ee693eefdcd158f6a45db2e656d483c40e87
This commit is contained in:
yang-19970325 2023-05-29 16:48:42 +08:00
parent ed9adb5e20
commit da7a8106e9
6 changed files with 0 additions and 18 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}