Lines Matching full:vm
57 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const std::str… in DumpHeapSnapshot() argument
62 DumpHeapSnapshot(vm, &stream, dumpOption); in DumpHeapSnapshot()
69 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream *stream, in DumpHeapSnapshot() argument
75 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot()
84 void DFXJSNApi::DumpCpuProfile([[maybe_unused]] const EcmaVM *vm) in DumpCpuProfile() argument
90 if (DFXJSNApi::StopCpuProfilerForColdStart(vm)) { in DumpCpuProfile()
95 if (DFXJSNApi::CpuProfilerSamplingAnyTime(vm)) { in DumpCpuProfile()
105 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshot() argument
111 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in DumpHeapSnapshot()
118 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot()
135 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot()
145 // tid = 0: dump all vm; tid != 0: dump tid vm, hidumper.
146 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshot() argument
150 if (vm->IsWorkerThread()) { in DumpHeapSnapshot()
155 uint32_t curTid = vm->GetTid(); in DumpHeapSnapshot()
157 DumpHeapSnapshotWithVm(vm, dumpOption, tid); in DumpHeapSnapshot()
160 void DFXJSNApi::DumpHeapSnapshotWithVm([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshotWithVm() argument
166 uv_loop_t *loop = reinterpret_cast<uv_loop_t *>(vm->GetLoop()); in DumpHeapSnapshotWithVm()
172 dumpStruct->vm = vm; in DumpHeapSnapshotWithVm()
182 uint32_t curTid = vm->GetTid(); in DumpHeapSnapshotWithVm()
187 DFXJSNApi::GetHeapPrepare(dump->vm); in DumpHeapSnapshotWithVm()
189 DumpHeapSnapshot(dump->vm, dumpOption); in DumpHeapSnapshotWithVm()
198 // dump worker vm in DumpHeapSnapshotWithVm()
199 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in DumpHeapSnapshotWithVm()
215 void DFXJSNApi::GenerateHeapSnapshotByBinFile([[maybe_unused]] const EcmaVM *vm, in GenerateHeapSnapshotByBinFile() argument
220 auto *heapProfile = ecmascript::HeapProfilerInterface::GetInstance(const_cast<EcmaVM *>(vm)); in GenerateHeapSnapshotByBinFile()
227 // tid = 0: TriggerGC all vm; tid != 0: TriggerGC tid vm
228 void DFXJSNApi::TriggerGC([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] uint32_t tid) in TriggerGC() argument
230 if (vm->IsWorkerThread()) { in TriggerGC()
234 // triggerGC host vm in TriggerGC()
235 uint32_t curTid = vm->GetTid(); in TriggerGC()
238 TriggerGCWithVm(vm); in TriggerGC()
240 // triggerGC worker vm in TriggerGC()
241 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in TriggerGC()
250 TriggerSharedGCWithVm(vm); in TriggerGC()
253 void DFXJSNApi::TriggerSharedGCWithVm([[maybe_unused]] const EcmaVM *vm) in TriggerSharedGCWithVm() argument
257 uv_loop_t *loop = reinterpret_cast<uv_loop_t *>(vm->GetLoop()); in TriggerSharedGCWithVm()
271 work->data = static_cast<void *>(const_cast<EcmaVM *>(vm)); in TriggerSharedGCWithVm()
273 EcmaVM *vm = static_cast<EcmaVM *>(work->data); in TriggerSharedGCWithVm() local
275 JSThread *thread = vm->GetJSThread(); in TriggerSharedGCWithVm()
288 void DFXJSNApi::TriggerGCWithVm([[maybe_unused]] const EcmaVM *vm) in TriggerGCWithVm() argument
292 uv_loop_t *loop = reinterpret_cast<uv_loop_t *>(vm->GetLoop()); in TriggerGCWithVm()
306 work->data = static_cast<void *>(const_cast<EcmaVM *>(vm)); in TriggerGCWithVm()
308 EcmaVM *vm = static_cast<EcmaVM *>(work->data); in TriggerGCWithVm() local
309 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in TriggerGCWithVm()
310 …vm->CollectGarbage(ecmascript::TriggerGCType::FULL_GC, ecmascript::GCReason::TRIGGER_BY_MEM_TOOLS); in TriggerGCWithVm()
321 void DFXJSNApi::DestroyHeapProfiler([[maybe_unused]] const EcmaVM *vm) in DestroyHeapProfiler() argument
324 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in DestroyHeapProfiler()
325 ecmascript::HeapProfilerInterface::Destroy(const_cast<EcmaVM *>(vm)); in DestroyHeapProfiler()
331 bool DFXJSNApi::BuildNativeAndJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr) in BuildNativeAndJsStackTrace() argument
333 stackTraceStr = ecmascript::JsStackInfo::BuildJsStackTrace(vm->GetAssociatedJSThread(), true); in BuildNativeAndJsStackTrace()
340 bool DFXJSNApi::BuildJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr) in BuildJsStackTrace() argument
342 stackTraceStr = ecmascript::JsStackInfo::BuildJsStackTrace(vm->GetAssociatedJSThread(), false); in BuildJsStackTrace()
349 bool DFXJSNApi::StartHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] double timeIn… in StartHeapTracking() argument
355 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in StartHeapTracking()
357 const_cast<EcmaVM *>(vm)); in StartHeapTracking()
365 bool DFXJSNApi::UpdateHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream *stre… in UpdateHeapTracking() argument
369 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in UpdateHeapTracking()
371 const_cast<EcmaVM *>(vm)); in UpdateHeapTracking()
379 bool DFXJSNApi::StopHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const std::str… in StopHeapTracking() argument
384 return StopHeapTracking(vm, &stream, nullptr, newThread); in StopHeapTracking()
391 bool DFXJSNApi::StopHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream* stream, in StopHeapTracking() argument
396 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in StopHeapTracking()
399 const_cast<EcmaVM *>(vm)); in StopHeapTracking()
401 ecmascript::HeapProfilerInterface::Destroy(const_cast<EcmaVM *>(vm)); in StopHeapTracking()
409 void DFXJSNApi::PrintStatisticResult(const EcmaVM *vm) in PrintStatisticResult() argument
411 ecmascript::GCStats gcstats(vm->GetHeap()); in PrintStatisticResult()
415 void DFXJSNApi::StartRuntimeStat(EcmaVM *vm) in StartRuntimeStat() argument
417 vm->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(true); in StartRuntimeStat()
420 void DFXJSNApi::StopRuntimeStat(EcmaVM *vm) in StopRuntimeStat() argument
422 vm->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(false); in StopRuntimeStat()
425 size_t DFXJSNApi::GetArrayBufferSize(const EcmaVM *vm) in GetArrayBufferSize() argument
427 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetArrayBufferSize()
428 return vm->GetHeap()->GetArrayBufferSize(); in GetArrayBufferSize()
431 size_t DFXJSNApi::GetHeapTotalSize(const EcmaVM *vm) in GetHeapTotalSize() argument
433 return vm->GetHeap()->GetCommittedSize(); in GetHeapTotalSize()
436 size_t DFXJSNApi::GetHeapUsedSize(const EcmaVM *vm) in GetHeapUsedSize() argument
438 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetHeapUsedSize()
439 return vm->GetHeap()->GetLiveObjectSize(); in GetHeapUsedSize()
442 size_t DFXJSNApi::GetHeapObjectSize(const EcmaVM *vm) in GetHeapObjectSize() argument
444 return vm->GetHeap()->GetHeapObjectSize(); in GetHeapObjectSize()
447 size_t DFXJSNApi::GetHeapLimitSize(const EcmaVM *vm) in GetHeapLimitSize() argument
449 return vm->GetHeap()->GetHeapLimitSize(); in GetHeapLimitSize()
457 size_t DFXJSNApi::GetGCCount(const EcmaVM *vm) in GetGCCount() argument
459 if (vm->IsWorkerThread()) { in GetGCCount()
460 return vm->GetEcmaGCStats()->GetGCCount(); in GetGCCount()
462 return vm->GetEcmaGCStats()->GetGCCount() + in GetGCCount()
466 size_t DFXJSNApi::GetGCDuration(const EcmaVM *vm) in GetGCDuration() argument
468 if (vm->IsWorkerThread()) { in GetGCDuration()
469 return vm->GetEcmaGCStats()->GetGCDuration(); in GetGCDuration()
471 return vm->GetEcmaGCStats()->GetGCDuration() + in GetGCDuration()
475 size_t DFXJSNApi::GetAccumulatedAllocateSize(const EcmaVM *vm) in GetAccumulatedAllocateSize() argument
477 if (vm->IsWorkerThread()) { in GetAccumulatedAllocateSize()
478 return vm->GetEcmaGCStats()->GetAccumulatedAllocateSize(); in GetAccumulatedAllocateSize()
480 return vm->GetEcmaGCStats()->GetAccumulatedAllocateSize() + in GetAccumulatedAllocateSize()
484 size_t DFXJSNApi::GetAccumulatedFreeSize(const EcmaVM *vm) in GetAccumulatedFreeSize() argument
486 if (vm->IsWorkerThread()) { in GetAccumulatedFreeSize()
487 return vm->GetEcmaGCStats()->GetAccumulatedFreeSize(); in GetAccumulatedFreeSize()
489 return vm->GetEcmaGCStats()->GetAccumulatedFreeSize() + in GetAccumulatedFreeSize()
493 size_t DFXJSNApi::GetFullGCLongTimeCount(const EcmaVM *vm) in GetFullGCLongTimeCount() argument
495 return vm->GetEcmaGCStats()->GetFullGCLongTimeCount(); in GetFullGCLongTimeCount()
498 void DFXJSNApi::GetHeapPrepare(const EcmaVM *vm) in GetHeapPrepare() argument
500 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetHeapPrepare()
501 const_cast<ecmascript::Heap *>(vm->GetHeap())->GetHeapPrepare(); in GetHeapPrepare()
504 void DFXJSNApi::SetJsDumpThresholds([[maybe_unused]] EcmaVM *vm, [[maybe_unused]] size_t thresholds) in SetJsDumpThresholds() argument
507 vm->GetHeap()->SetJsDumpThresholds(thresholds); in SetJsDumpThresholds()
513 void DFXJSNApi::SetAppFreezeFilterCallback(const EcmaVM *vm, AppFreezeFilterCallback cb) in SetAppFreezeFilterCallback() argument
515 const_cast<ecmascript::Heap *>(vm->GetHeap())->SetAppFreezeFilterCallback(cb); in SetAppFreezeFilterCallback()
520 void DFXJSNApi::NotifyApplicationState(EcmaVM *vm, bool inBackground) in NotifyApplicationState() argument
522 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in NotifyApplicationState()
523 const_cast<ecmascript::Heap *>(vm->GetHeap())->ChangeGCParams(inBackground); in NotifyApplicationState()
527 void DFXJSNApi::NotifyIdleStatusControl(const EcmaVM *vm, std::function<void(bool)> callback) in NotifyIdleStatusControl() argument
529 const_cast<ecmascript::Heap *>(vm->GetHeap())->InitializeIdleStatusControl(callback); in NotifyIdleStatusControl()
532 void DFXJSNApi::NotifyIdleTime(const EcmaVM *vm, int idleMicroSec) in NotifyIdleTime() argument
534 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in NotifyIdleTime()
535 const_cast<ecmascript::Heap *>(vm->GetHeap())->TriggerIdleCollection(idleMicroSec); in NotifyIdleTime()
538 void DFXJSNApi::NotifyMemoryPressure(EcmaVM *vm, bool inHighMemoryPressure) in NotifyMemoryPressure() argument
540 const_cast<ecmascript::Heap *>(vm->GetHeap())->NotifyMemoryPressure(inHighMemoryPressure); in NotifyMemoryPressure()
543 void DFXJSNApi::NotifyFinishColdStart(EcmaVM *vm, bool isConvinced) in NotifyFinishColdStart() argument
545 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in NotifyFinishColdStart()
547 const_cast<ecmascript::Heap *>(vm->GetHeap())->NotifyFinishColdStart(); in NotifyFinishColdStart()
549 const_cast<ecmascript::Heap *>(vm->GetHeap())->NotifyFinishColdStartSoon(); in NotifyFinishColdStart()
553 void DFXJSNApi::NotifyHighSensitive(EcmaVM *vm, bool isStart) in NotifyHighSensitive() argument
555 const_cast<ecmascript::Heap *>(vm->GetHeap())->NotifyHighSensitive(isStart); in NotifyHighSensitive()
558 bool DFXJSNApi::StopCpuProfilerForColdStart([[maybe_unused]] const EcmaVM *vm) in StopCpuProfilerForColdStart() argument
562 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in StopCpuProfilerForColdStart()
565 DFXJSNApi::StopCpuProfilerForFile(vm); in StopCpuProfilerForColdStart()
570 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in StopCpuProfilerForColdStart()
585 void DFXJSNApi::CpuProfilerAnyTimeMainThread(const EcmaVM *vm) in CpuProfilerAnyTimeMainThread() argument
591 std::string fileName = ConvertToStdString(const_cast<EcmaVM *>(vm)->GetBundleName()) in CpuProfilerAnyTimeMainThread()
596 DFXJSNApi::StartCpuProfilerForFile(vm, fileName, CpuProfiler::INTERVAL_OF_INNER_START); in CpuProfilerAnyTimeMainThread()
600 if (vm->GetJSThread()->GetIsProfiling()) { in CpuProfilerAnyTimeMainThread()
601 DFXJSNApi::StopCpuProfilerForFile(vm); in CpuProfilerAnyTimeMainThread()
607 bool DFXJSNApi::CpuProfilerSamplingAnyTime([[maybe_unused]] const EcmaVM *vm) in CpuProfilerSamplingAnyTime() argument
613 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in CpuProfilerSamplingAnyTime()
616 CpuProfilerAnyTimeMainThread(vm); in CpuProfilerSamplingAnyTime()
624 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in CpuProfilerSamplingAnyTime()
638 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in CpuProfilerSamplingAnyTime()
655 bool DFXJSNApi::StartCpuProfilerForFile([[maybe_unused]] const EcmaVM *vm, in StartCpuProfilerForFile() argument
660 LOG_ECMA(INFO) << "DFXJSNApi::StartCpuProfilerForFile, vm = " << vm; in StartCpuProfilerForFile()
665 if (vm == nullptr) { in StartCpuProfilerForFile()
666 LOG_ECMA(ERROR) << "DFXJSNApi::StartCpuProfilerForFile, vm == nullptr"; in StartCpuProfilerForFile()
669 CpuProfiler *profiler = vm->GetProfiler(); in StartCpuProfilerForFile()
671 profiler = new CpuProfiler(vm, interval); in StartCpuProfilerForFile()
672 const_cast<EcmaVM *>(vm)->SetProfiler(profiler); in StartCpuProfilerForFile()
681 void DFXJSNApi::StopCpuProfilerForFile([[maybe_unused]] const EcmaVM *vm) in StopCpuProfilerForFile() argument
684 LOG_ECMA(INFO) << "DFXJSNApi::StopCpuProfilerForFile, vm = " << vm; in StopCpuProfilerForFile()
685 if (vm == nullptr) { in StopCpuProfilerForFile()
686 LOG_ECMA(ERROR) << "DFXJSNApi::StopCpuProfilerForFile, vm == nullptr"; in StopCpuProfilerForFile()
689 CpuProfiler *profiler = vm->GetProfiler(); in StopCpuProfilerForFile()
701 const_cast<EcmaVM *>(vm)->SetProfiler(nullptr); in StopCpuProfilerForFile()
707 bool DFXJSNApi::StartCpuProfilerForInfo([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int int… in StartCpuProfilerForInfo() argument
710 LOG_ECMA(INFO) << "DFXJSNApi::StartCpuProfilerForInfo, vm = " << vm; in StartCpuProfilerForInfo()
715 if (vm == nullptr) { in StartCpuProfilerForInfo()
716 LOG_ECMA(ERROR) << "DFXJSNApi::StartCpuProfilerForInfo, vm == nullptr"; in StartCpuProfilerForInfo()
719 CpuProfiler *profiler = vm->GetProfiler(); in StartCpuProfilerForInfo()
721 profiler = new CpuProfiler(vm, interval); in StartCpuProfilerForInfo()
722 const_cast<EcmaVM *>(vm)->SetProfiler(profiler); in StartCpuProfilerForInfo()
731 std::unique_ptr<ProfileInfo> DFXJSNApi::StopCpuProfilerForInfo([[maybe_unused]] const EcmaVM *vm) in StopCpuProfilerForInfo() argument
734 LOG_ECMA(INFO) << "DFXJSNApi::StopCpuProfilerForInfo, vm = " << vm; in StopCpuProfilerForInfo()
735 if (vm == nullptr) { in StopCpuProfilerForInfo()
736 LOG_ECMA(ERROR) << "DFXJSNApi::StopCpuProfilerForInfo, vm == nullptr"; in StopCpuProfilerForInfo()
739 CpuProfiler *profiler = vm->GetProfiler(); in StopCpuProfilerForInfo()
752 const_cast<EcmaVM *>(vm)->SetProfiler(nullptr); in StopCpuProfilerForInfo()
760 void DFXJSNApi::SetCpuSamplingInterval([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int inte… in SetCpuSamplingInterval() argument
768 if (vm == nullptr) { in SetCpuSamplingInterval()
771 CpuProfiler *profiler = vm->GetProfiler(); in SetCpuSamplingInterval()
773 profiler = new CpuProfiler(vm, interval); in SetCpuSamplingInterval()
774 const_cast<EcmaVM *>(vm)->SetProfiler(profiler); in SetCpuSamplingInterval()
794 bool DFXJSNApi::SuspendVM([[maybe_unused]] const EcmaVM *vm) in SuspendVM() argument
797 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in SuspendVM()
805 void DFXJSNApi::ResumeVM([[maybe_unused]] const EcmaVM *vm) in ResumeVM() argument
808 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in ResumeVM()
815 bool DFXJSNApi::IsSuspended([[maybe_unused]] const EcmaVM *vm) in IsSuspended() argument
818 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in IsSuspended()
826 void DFXJSNApi::TerminateExecution(const EcmaVM *vm) in TerminateExecution() argument
828 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in TerminateExecution()
832 bool DFXJSNApi::CheckSafepoint([[maybe_unused]] const EcmaVM *vm) in CheckSafepoint() argument
835 ecmascript::JSThread* thread = vm->GetJSThread(); in CheckSafepoint()
845 EcmaVM *vm; in BuildJsStackInfoList() local
847 vm = const_cast<EcmaVM*>(hostVm); in BuildJsStackInfoList()
849 vm = const_cast<EcmaVM*>(hostVm)->GetWorkerVm(tid); in BuildJsStackInfoList()
850 if (vm == nullptr) { in BuildJsStackInfoList()
854 jsFrames = ecmascript::JsStackInfo::BuildJsStackInfo(vm->GetAssociatedJSThread()); in BuildJsStackInfoList()
861 int32_t DFXJSNApi::GetObjectHash(const EcmaVM *vm, Local<JSValueRef> nativeObject) in GetObjectHash() argument
864 return ecmascript::tooling::DebuggerApi::GetObjectHash(vm, obj); in GetObjectHash()
867 bool DFXJSNApi::StartSampling([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] uint64_t sampling… in StartSampling() argument
871 const_cast<EcmaVM *>(vm)); in StartSampling()
879 const SamplingInfo *DFXJSNApi::GetAllocationProfile([[maybe_unused]] const EcmaVM *vm) in GetAllocationProfile() argument
883 const_cast<EcmaVM *>(vm)); in GetAllocationProfile()
891 void DFXJSNApi::StopSampling([[maybe_unused]] const EcmaVM *vm) in StopSampling() argument
895 const_cast<EcmaVM *>(vm)); in StopSampling()
904 bool DFXJSNApi::StartProfiler(EcmaVM *vm, const ProfilerOption &option, int tid, in StartProfiler() argument
913 … if (JSNApi::NotifyDebugMode(tid, vm, debugOption, instanceId, debuggerPostTask, isDebugApp)) { in StartProfiler()
914 return StartCpuProfilerForInfo(vm, option.interval); in StartProfiler()
921 … return JSNApi::NotifyDebugMode(tid, vm, debugOption, instanceId, debuggerPostTask, isDebugApp); in StartProfiler()
948 bool DFXJSNApi::StartTracing([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] std::string &categ… in StartTracing() argument
951 if (vm == nullptr) { in StartTracing()
954 Tracing *tracing = vm->GetTracing(); in StartTracing()
956 tracing = new Tracing(vm); in StartTracing()
957 const_cast<EcmaVM *>(vm)->SetTracing(tracing); in StartTracing()
967 std::unique_ptr<std::vector<TraceEvent>> DFXJSNApi::StopTracing([[maybe_unused]] const EcmaVM *vm) in StopTracing() argument
970 if (vm == nullptr) { in StopTracing()
973 Tracing *tracing = vm->GetTracing(); in StopTracing()
984 const_cast<EcmaVM *>(vm)->SetTracing(nullptr); in StopTracing()
992 void DFXJSNApi::GetTracingBufferUseage([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] double &… in GetTracingBufferUseage() argument
996 if (vm == nullptr) { in GetTracingBufferUseage()
999 ecmascript::Tracing *tracing = vm->GetTracing(); in GetTracingBufferUseage()
1010 void DFXJSNApi::TranslateJSStackInfo(const EcmaVM *vm, std::string &url, int32_t &line, int32_t &co… in TranslateJSStackInfo() argument
1012 auto cb = vm->GetSourceMapTranslateCallback(); in TranslateJSStackInfo()