• Home
  • Raw
  • Download

Lines Matching full:vm

58 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const std::str…  in DumpHeapSnapshot()  argument
63 DumpHeapSnapshot(vm, &stream, dumpOption); in DumpHeapSnapshot()
69 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int& fd, in DumpHeapSnapshot() argument
76 DumpHeapSnapshot(vm, &stream, dumpOption, nullptr, callback); in DumpHeapSnapshot()
83 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream *stream, in DumpHeapSnapshot() argument
90 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot()
114 void DFXJSNApi::DumpCpuProfile([[maybe_unused]] const EcmaVM *vm) in DumpCpuProfile() argument
117 vm->GetJSThread()->GetCurrentEcmaContext()->PrintMegaICStat(); in DumpCpuProfile()
123 if (DFXJSNApi::StopCpuProfilerForColdStart(vm)) { in DumpCpuProfile()
128 if (DFXJSNApi::CpuProfilerSamplingAnyTime(vm)) { in DumpCpuProfile()
138 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshot() argument
144 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in DumpHeapSnapshot()
151 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot()
168 const_cast<EcmaVM *>(vm)); in DumpHeapSnapshot()
178 // tid = 0: dump all vm; tid != 0: dump tid vm, hidumper.
179 void DFXJSNApi::DumpHeapSnapshot([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshot() argument
183 if (vm->IsWorkerThread()) { in DumpHeapSnapshot()
188 uint32_t curTid = vm->GetTid(); in DumpHeapSnapshot()
190 DumpHeapSnapshotWithVm(vm, dumpOption, tid); in DumpHeapSnapshot()
193 void DFXJSNApi::DumpHeapSnapshotWithVm([[maybe_unused]] const EcmaVM *vm, in DumpHeapSnapshotWithVm() argument
199 uv_loop_t *loop = reinterpret_cast<uv_loop_t *>(vm->GetLoop()); in DumpHeapSnapshotWithVm()
205 dumpStruct->vm = vm; in DumpHeapSnapshotWithVm()
215 uint32_t curTid = vm->GetTid(); in DumpHeapSnapshotWithVm()
220 DFXJSNApi::GetHeapPrepare(dump->vm); in DumpHeapSnapshotWithVm()
222 DumpHeapSnapshot(dump->vm, dumpOption); in DumpHeapSnapshotWithVm()
231 // dump worker vm in DumpHeapSnapshotWithVm()
232 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in DumpHeapSnapshotWithVm()
248 void DFXJSNApi::GenerateHeapSnapshotByBinFile([[maybe_unused]] const EcmaVM *vm, in GenerateHeapSnapshotByBinFile() argument
253 auto *heapProfile = ecmascript::HeapProfilerInterface::GetInstance(const_cast<EcmaVM *>(vm)); in GenerateHeapSnapshotByBinFile()
260 // tid = 0: TriggerGC all vm; tid != 0: TriggerGC tid vm
261 void DFXJSNApi::TriggerGC([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] uint32_t tid) in TriggerGC() argument
263 if (vm->IsWorkerThread()) { in TriggerGC()
267 // triggerGC host vm in TriggerGC()
268 uint32_t curTid = vm->GetTid(); in TriggerGC()
271 TriggerGCWithVm(vm); in TriggerGC()
273 // triggerGC worker vm in TriggerGC()
274 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in TriggerGC()
283 TriggerSharedGCWithVm(vm); in TriggerGC()
286 void DFXJSNApi::TriggerSharedGCWithVm([[maybe_unused]] const EcmaVM *vm) in TriggerSharedGCWithVm() argument
290 uv_loop_t *loop = reinterpret_cast<uv_loop_t *>(vm->GetLoop()); in TriggerSharedGCWithVm()
304 work->data = static_cast<void *>(const_cast<EcmaVM *>(vm)); in TriggerSharedGCWithVm()
306 EcmaVM *vm = static_cast<EcmaVM *>(work->data); in TriggerSharedGCWithVm() local
308 JSThread *thread = vm->GetJSThread(); in TriggerSharedGCWithVm()
322 void DFXJSNApi::TriggerGCWithVm([[maybe_unused]] const EcmaVM *vm) in TriggerGCWithVm() argument
326 uv_loop_t *loop = reinterpret_cast<uv_loop_t *>(vm->GetLoop()); in TriggerGCWithVm()
340 work->data = static_cast<void *>(const_cast<EcmaVM *>(vm)); in TriggerGCWithVm()
342 EcmaVM *vm = static_cast<EcmaVM *>(work->data); in TriggerGCWithVm() local
343 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in TriggerGCWithVm()
344vm->CollectGarbage(ecmascript::TriggerGCType::FULL_GC, ecmascript::GCReason::TRIGGER_BY_MEM_TOOLS); in TriggerGCWithVm()
355 void DFXJSNApi::DestroyHeapProfiler([[maybe_unused]] const EcmaVM *vm) in DestroyHeapProfiler() argument
358 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in DestroyHeapProfiler()
359 ecmascript::HeapProfilerInterface::Destroy(const_cast<EcmaVM *>(vm)); in DestroyHeapProfiler()
365 bool DFXJSNApi::BuildNativeAndJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr) in BuildNativeAndJsStackTrace() argument
367 stackTraceStr = ecmascript::JsStackInfo::BuildJsStackTrace(vm->GetAssociatedJSThread(), true); in BuildNativeAndJsStackTrace()
374 bool DFXJSNApi::BuildJsStackTrace(const EcmaVM *vm, std::string &stackTraceStr) in BuildJsStackTrace() argument
376 stackTraceStr = ecmascript::JsStackInfo::BuildJsStackTrace(vm->GetAssociatedJSThread(), false); in BuildJsStackTrace()
383 bool DFXJSNApi::StartHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] double timeIn… in StartHeapTracking() argument
389 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in StartHeapTracking()
391 const_cast<EcmaVM *>(vm)); in StartHeapTracking()
399 bool DFXJSNApi::UpdateHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream *stre… in UpdateHeapTracking() argument
403 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in UpdateHeapTracking()
405 const_cast<EcmaVM *>(vm)); in UpdateHeapTracking()
413 bool DFXJSNApi::StopHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] const std::str… in StopHeapTracking() argument
418 return StopHeapTracking(vm, &stream, nullptr, newThread); in StopHeapTracking()
425 bool DFXJSNApi::StopHeapTracking([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] Stream* stream, in StopHeapTracking() argument
430 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in StopHeapTracking()
433 const_cast<EcmaVM *>(vm)); in StopHeapTracking()
435 ecmascript::HeapProfilerInterface::Destroy(const_cast<EcmaVM *>(vm)); in StopHeapTracking()
443 void DFXJSNApi::PrintStatisticResult(const EcmaVM *vm) in PrintStatisticResult() argument
445 ecmascript::GCStats gcstats(vm->GetHeap()); in PrintStatisticResult()
449 void DFXJSNApi::StartRuntimeStat(EcmaVM *vm) in StartRuntimeStat() argument
451 vm->GetJSThread()->GetEcmaVM()->SetRuntimeStatEnable(true); in StartRuntimeStat()
454 void DFXJSNApi::StopRuntimeStat(EcmaVM *vm) in StopRuntimeStat() argument
456 vm->GetJSThread()->GetEcmaVM()->SetRuntimeStatEnable(false); in StopRuntimeStat()
459 size_t DFXJSNApi::GetArrayBufferSize(const EcmaVM *vm) in GetArrayBufferSize() argument
461 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetArrayBufferSize()
462 return vm->GetHeap()->GetArrayBufferSize(); in GetArrayBufferSize()
465 size_t DFXJSNApi::GetHeapTotalSize(const EcmaVM *vm) in GetHeapTotalSize() argument
467 return vm->GetHeap()->GetCommittedSize(); in GetHeapTotalSize()
470 size_t DFXJSNApi::GetHeapUsedSize(const EcmaVM *vm) in GetHeapUsedSize() argument
472 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetHeapUsedSize()
473 return vm->GetHeap()->GetLiveObjectSize(); in GetHeapUsedSize()
476 size_t DFXJSNApi::GetHeapObjectSize(const EcmaVM *vm) in GetHeapObjectSize() argument
478 return vm->GetHeap()->GetHeapObjectSize(); in GetHeapObjectSize()
481 size_t DFXJSNApi::GetHeapLimitSize(const EcmaVM *vm) in GetHeapLimitSize() argument
483 return vm->GetHeap()->GetHeapLimitSize(); in GetHeapLimitSize()
491 size_t DFXJSNApi::GetGCCount(const EcmaVM *vm) in GetGCCount() argument
493 if (vm->IsWorkerThread()) { in GetGCCount()
494 return vm->GetEcmaGCStats()->GetGCCount(); in GetGCCount()
496 return vm->GetEcmaGCStats()->GetGCCount() + in GetGCCount()
500 size_t DFXJSNApi::GetGCDuration(const EcmaVM *vm) in GetGCDuration() argument
502 if (vm->IsWorkerThread()) { in GetGCDuration()
503 return vm->GetEcmaGCStats()->GetGCDuration(); in GetGCDuration()
505 return vm->GetEcmaGCStats()->GetGCDuration() + in GetGCDuration()
509 size_t DFXJSNApi::GetAccumulatedAllocateSize(const EcmaVM *vm) in GetAccumulatedAllocateSize() argument
511 if (vm->IsWorkerThread()) { in GetAccumulatedAllocateSize()
512 return vm->GetEcmaGCStats()->GetAccumulatedAllocateSize(); in GetAccumulatedAllocateSize()
514 return vm->GetEcmaGCStats()->GetAccumulatedAllocateSize() + in GetAccumulatedAllocateSize()
518 size_t DFXJSNApi::GetAccumulatedFreeSize(const EcmaVM *vm) in GetAccumulatedFreeSize() argument
520 if (vm->IsWorkerThread()) { in GetAccumulatedFreeSize()
521 return vm->GetEcmaGCStats()->GetAccumulatedFreeSize(); in GetAccumulatedFreeSize()
523 return vm->GetEcmaGCStats()->GetAccumulatedFreeSize() + in GetAccumulatedFreeSize()
527 size_t DFXJSNApi::GetFullGCLongTimeCount(const EcmaVM *vm) in GetFullGCLongTimeCount() argument
529 return vm->GetEcmaGCStats()->GetFullGCLongTimeCount(); in GetFullGCLongTimeCount()
532 void DFXJSNApi::GetHeapPrepare(const EcmaVM *vm) in GetHeapPrepare() argument
534 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetHeapPrepare()
535 const_cast<ecmascript::Heap *>(vm->GetHeap())->GetHeapPrepare(); in GetHeapPrepare()
538 void DFXJSNApi::SetJsDumpThresholds([[maybe_unused]] EcmaVM *vm, [[maybe_unused]] size_t thresholds) in SetJsDumpThresholds() argument
541 vm->GetHeap()->SetJsDumpThresholds(thresholds); in SetJsDumpThresholds()
547 void DFXJSNApi::SetAppFreezeFilterCallback([[maybe_unused]] const EcmaVM *vm, AppFreezeFilterCallba… in SetAppFreezeFilterCallback() argument
554 void DFXJSNApi::NotifyApplicationState(EcmaVM *vm, bool inBackground) in NotifyApplicationState() argument
556 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in NotifyApplicationState()
557 const_cast<ecmascript::Heap *>(vm->GetHeap())->ChangeGCParams(inBackground); in NotifyApplicationState()
561 void DFXJSNApi::NotifyIdleStatusControl(const EcmaVM *vm, std::function<void(bool)> callback) in NotifyIdleStatusControl() argument
563 const_cast<ecmascript::Heap *>(vm->GetHeap())->InitializeIdleStatusControl(callback); in NotifyIdleStatusControl()
566 void DFXJSNApi::NotifyIdleTime(const EcmaVM *vm, int idleMicroSec) in NotifyIdleTime() argument
568 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in NotifyIdleTime()
569 const_cast<ecmascript::Heap *>(vm->GetHeap())->TriggerIdleCollection(idleMicroSec); in NotifyIdleTime()
572 void DFXJSNApi::NotifyMemoryPressure(EcmaVM *vm, bool inHighMemoryPressure) in NotifyMemoryPressure() argument
574 const_cast<ecmascript::Heap *>(vm->GetHeap())->NotifyMemoryPressure(inHighMemoryPressure); in NotifyMemoryPressure()
577 void DFXJSNApi::NotifyFinishColdStart(EcmaVM *vm, [[maybe_unused]] bool isConvinced) in NotifyFinishColdStart() argument
579 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in NotifyFinishColdStart()
582 void DFXJSNApi::NotifyHighSensitive(EcmaVM *vm, bool isStart) in NotifyHighSensitive() argument
584 const_cast<ecmascript::Heap *>(vm->GetHeap())->NotifyHighSensitive(isStart); in NotifyHighSensitive()
587 bool DFXJSNApi::StopCpuProfilerForColdStart([[maybe_unused]] const EcmaVM *vm) in StopCpuProfilerForColdStart() argument
591 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in StopCpuProfilerForColdStart()
594 DFXJSNApi::StopCpuProfilerForFile(vm); in StopCpuProfilerForColdStart()
599 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in StopCpuProfilerForColdStart()
614 void DFXJSNApi::CpuProfilerAnyTimeMainThread(const EcmaVM *vm) in CpuProfilerAnyTimeMainThread() argument
620 std::string fileName = ConvertToStdString(const_cast<EcmaVM *>(vm)->GetBundleName()) in CpuProfilerAnyTimeMainThread()
625 DFXJSNApi::StartCpuProfilerForFile(vm, fileName, CpuProfiler::INTERVAL_OF_INNER_START); in CpuProfilerAnyTimeMainThread()
629 if (vm->GetJSThread()->GetIsProfiling()) { in CpuProfilerAnyTimeMainThread()
630 DFXJSNApi::StopCpuProfilerForFile(vm); in CpuProfilerAnyTimeMainThread()
636 bool DFXJSNApi::CpuProfilerSamplingAnyTime([[maybe_unused]] const EcmaVM *vm) in CpuProfilerSamplingAnyTime() argument
642 auto &options = const_cast<EcmaVM *>(vm)->GetJSOptions(); in CpuProfilerSamplingAnyTime()
645 CpuProfilerAnyTimeMainThread(vm); in CpuProfilerSamplingAnyTime()
653 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in CpuProfilerSamplingAnyTime()
667 const_cast<EcmaVM *>(vm)->EnumerateWorkerVm([&](const EcmaVM *workerVm) -> void { in CpuProfilerSamplingAnyTime()
684 bool DFXJSNApi::StartCpuProfilerForFile([[maybe_unused]] const EcmaVM *vm, in StartCpuProfilerForFile() argument
689 LOG_ECMA(INFO) << "DFXJSNApi::StartCpuProfilerForFile, vm = " << vm; in StartCpuProfilerForFile()
694 if (vm == nullptr) { in StartCpuProfilerForFile()
695 LOG_ECMA(ERROR) << "DFXJSNApi::StartCpuProfilerForFile, vm == nullptr"; in StartCpuProfilerForFile()
698 CpuProfiler *profiler = vm->GetProfiler(); in StartCpuProfilerForFile()
700 profiler = new CpuProfiler(vm, interval); in StartCpuProfilerForFile()
701 const_cast<EcmaVM *>(vm)->SetProfiler(profiler); in StartCpuProfilerForFile()
710 void DFXJSNApi::StopCpuProfilerForFile([[maybe_unused]] const EcmaVM *vm) in StopCpuProfilerForFile() argument
713 LOG_ECMA(INFO) << "DFXJSNApi::StopCpuProfilerForFile, vm = " << vm; in StopCpuProfilerForFile()
714 if (vm == nullptr) { in StopCpuProfilerForFile()
715 LOG_ECMA(ERROR) << "DFXJSNApi::StopCpuProfilerForFile, vm == nullptr"; in StopCpuProfilerForFile()
718 CpuProfiler *profiler = vm->GetProfiler(); in StopCpuProfilerForFile()
730 const_cast<EcmaVM *>(vm)->SetProfiler(nullptr); in StopCpuProfilerForFile()
736 bool DFXJSNApi::StartCpuProfilerForInfo([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int int… in StartCpuProfilerForInfo() argument
739 LOG_ECMA(INFO) << "DFXJSNApi::StartCpuProfilerForInfo, vm = " << vm; in StartCpuProfilerForInfo()
744 if (vm == nullptr) { in StartCpuProfilerForInfo()
745 LOG_ECMA(ERROR) << "DFXJSNApi::StartCpuProfilerForInfo, vm == nullptr"; in StartCpuProfilerForInfo()
748 CpuProfiler *profiler = vm->GetProfiler(); in StartCpuProfilerForInfo()
750 profiler = new CpuProfiler(vm, interval); in StartCpuProfilerForInfo()
751 const_cast<EcmaVM *>(vm)->SetProfiler(profiler); in StartCpuProfilerForInfo()
760 std::unique_ptr<ProfileInfo> DFXJSNApi::StopCpuProfilerForInfo([[maybe_unused]] const EcmaVM *vm) in StopCpuProfilerForInfo() argument
763 LOG_ECMA(INFO) << "DFXJSNApi::StopCpuProfilerForInfo, vm = " << vm; in StopCpuProfilerForInfo()
764 if (vm == nullptr) { in StopCpuProfilerForInfo()
765 LOG_ECMA(ERROR) << "DFXJSNApi::StopCpuProfilerForInfo, vm == nullptr"; in StopCpuProfilerForInfo()
768 CpuProfiler *profiler = vm->GetProfiler(); in StopCpuProfilerForInfo()
781 const_cast<EcmaVM *>(vm)->SetProfiler(nullptr); in StopCpuProfilerForInfo()
789 void DFXJSNApi::SetCpuSamplingInterval([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] int inte… in SetCpuSamplingInterval() argument
797 if (vm == nullptr) { in SetCpuSamplingInterval()
800 CpuProfiler *profiler = vm->GetProfiler(); in SetCpuSamplingInterval()
802 profiler = new CpuProfiler(vm, interval); in SetCpuSamplingInterval()
803 const_cast<EcmaVM *>(vm)->SetProfiler(profiler); in SetCpuSamplingInterval()
823 bool DFXJSNApi::SuspendVM([[maybe_unused]] const EcmaVM *vm) in SuspendVM() argument
826 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in SuspendVM()
834 void DFXJSNApi::ResumeVM([[maybe_unused]] const EcmaVM *vm) in ResumeVM() argument
837 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in ResumeVM()
844 bool DFXJSNApi::IsSuspended([[maybe_unused]] const EcmaVM *vm) in IsSuspended() argument
847 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in IsSuspended()
855 void DFXJSNApi::TerminateExecution(const EcmaVM *vm) in TerminateExecution() argument
857 … ecmascript::VmThreadControl* vmThreadControl = vm->GetAssociatedJSThread()->GetVmThreadControl(); in TerminateExecution()
861 bool DFXJSNApi::CheckSafepoint([[maybe_unused]] const EcmaVM *vm) in CheckSafepoint() argument
864 ecmascript::JSThread* thread = vm->GetJSThread(); in CheckSafepoint()
874 EcmaVM *vm; in BuildJsStackInfoList() local
876 vm = const_cast<EcmaVM*>(hostVm); in BuildJsStackInfoList()
878 vm = const_cast<EcmaVM*>(hostVm)->GetWorkerVm(tid); in BuildJsStackInfoList()
879 if (vm == nullptr) { in BuildJsStackInfoList()
883 jsFrames = ecmascript::JsStackInfo::BuildJsStackInfo(vm->GetAssociatedJSThread()); in BuildJsStackInfoList()
892 int32_t DFXJSNApi::GetObjectHash(const EcmaVM *vm, Local<JSValueRef> nativeObject) in GetObjectHash() argument
895 return ecmascript::tooling::DebuggerApi::GetObjectHash(vm, obj); in GetObjectHash()
898 int32_t DFXJSNApi::GetObjectHashCode(const EcmaVM *vm, Local<JSValueRef> nativeObject) in GetObjectHashCode() argument
901 return ecmascript::tooling::DebuggerApi::GetObjectHashCode(vm, obj); in GetObjectHashCode()
904 bool DFXJSNApi::StartSampling([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] uint64_t sampling… in StartSampling() argument
908 const_cast<EcmaVM *>(vm)); in StartSampling()
916 const SamplingInfo *DFXJSNApi::GetAllocationProfile([[maybe_unused]] const EcmaVM *vm) in GetAllocationProfile() argument
920 const_cast<EcmaVM *>(vm)); in GetAllocationProfile()
928 void DFXJSNApi::StopSampling([[maybe_unused]] const EcmaVM *vm) in StopSampling() argument
932 const_cast<EcmaVM *>(vm)); in StopSampling()
941 bool DFXJSNApi::StartProfiler(EcmaVM *vm, const ProfilerOption &option, int tid, in StartProfiler() argument
950 … if (JSNApi::NotifyDebugMode(tid, vm, debugOption, instanceId, debuggerPostTask, isDebugApp)) { in StartProfiler()
951 return StartCpuProfilerForInfo(vm, option.interval); in StartProfiler()
958 … return JSNApi::NotifyDebugMode(tid, vm, debugOption, instanceId, debuggerPostTask, isDebugApp); in StartProfiler()
985 bool DFXJSNApi::StartTracing([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] std::string &categ… in StartTracing() argument
988 if (vm == nullptr) { in StartTracing()
991 Tracing *tracing = vm->GetTracing(); in StartTracing()
993 tracing = new Tracing(vm); in StartTracing()
994 const_cast<EcmaVM *>(vm)->SetTracing(tracing); in StartTracing()
1004 std::unique_ptr<std::vector<TraceEvent>> DFXJSNApi::StopTracing([[maybe_unused]] const EcmaVM *vm) in StopTracing() argument
1007 if (vm == nullptr) { in StopTracing()
1010 Tracing *tracing = vm->GetTracing(); in StopTracing()
1021 const_cast<EcmaVM *>(vm)->SetTracing(nullptr); in StopTracing()
1029 void DFXJSNApi::GetTracingBufferUseage([[maybe_unused]] const EcmaVM *vm, [[maybe_unused]] double &… in GetTracingBufferUseage() argument
1033 if (vm == nullptr) { in GetTracingBufferUseage()
1036 ecmascript::Tracing *tracing = vm->GetTracing(); in GetTracingBufferUseage()
1047 void DFXJSNApi::TranslateJSStackInfo(const EcmaVM *vm, std::string &url, int32_t &line, int32_t &co… in TranslateJSStackInfo() argument
1050 auto cb = vm->GetSourceMapTranslateCallback(); in TranslateJSStackInfo()
1063 void DFXJSNApi::RegisterAsyncDetectCallBack(const EcmaVM *vm) in RegisterAsyncDetectCallBack() argument
1065 vm->GetAsyncStackTrace()->RegisterAsyncDetectCallBack(); in RegisterAsyncDetectCallBack()