Lines Matching refs:tid

145 // tid = 0: dump all vm; tid != 0: dump tid vm, hidumper.
147 [[maybe_unused]] const DumpSnapShotOption &dumpOption, [[maybe_unused]] uint32_t tid)
156 LOG_ECMA(INFO) << "DumpHeapSnapshot tid " << tid << " curTid " << curTid;
157 DumpHeapSnapshotWithVm(vm, dumpOption, tid);
162 [[maybe_unused]] uint32_t tid)
184 if (tid == 0 || tid == curTid) {
202 DumpHeapSnapshotWithVm(workerVm, dumpOption, tid);
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)
236 LOG_ECMA(INFO) << "TriggerGC tid " << tid << " curTid " << curTid;
237 if (tid == 0 || tid == curTid) {
243 LOG_ECMA(INFO) << "TriggerGC tid " << tid << " curTid " << curTid;
244 if (tid == 0 || tid == curTid) {
844 bool DFXJSNApi::BuildJsStackInfoList(const EcmaVM *hostVm, uint32_t tid, std::vector<JsFrameInfo>& jsFrames)
847 if (hostVm->GetAssociatedJSThread()->GetThreadId() == tid) {
850 vm = const_cast<EcmaVM*>(hostVm)->GetWorkerVm(tid);
905 bool DFXJSNApi::StartProfiler(EcmaVM *vm, const ProfilerOption &option, int tid,
909 << ", tid = " << tid << ", isDebugApp = " << isDebugApp;
914 if (JSNApi::NotifyDebugMode(tid, vm, debugOption, instanceId, debuggerPostTask, isDebugApp)) {
922 return JSNApi::NotifyDebugMode(tid, vm, debugOption, instanceId, debuggerPostTask, isDebugApp);
926 void DFXJSNApi::ResumeVMById(EcmaVM *hostVm, uint32_t tid)
928 if (hostVm->GetAssociatedJSThread()->GetThreadId() == tid) {
931 hostVm->ResumeWorkerVm(tid);
935 bool DFXJSNApi::SuspendVMById(EcmaVM *hostVm, uint32_t tid)
938 if (hostVm->GetAssociatedJSThread()->GetThreadId() == tid) {
943 success = hostVm->SuspendWorkerVm(tid);