MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / stopStalk

Function stopStalk

scripts/thread-stalker.js:371–379  ·  view source on GitHub ↗
(tid, reason)

Source from the content-addressed store, hash-verified

369}
370
371function stopStalk(tid, reason) {
372 const state = stalked.get(tid);
373 if (!state) return;
374 try { Stalker.unfollow(tid); } catch (e) {}
375 try { Stalker.flush(); } catch (e) {}
376 stalked.delete(tid);
377 stalkedCount--;
378 console.log(`${C.red}[stalk-]${C.reset} ${PID}:${state.name}#${tid} ${C.dim}events=${state.count}${state.dropped ? ` dropped=${state.dropped}` : ""} reason=${reason || "thread exit"} @+${tms()}ms${C.reset}`);
379}
380
381// --- the observer -----------------------------------------------------------
382const threadObs = Process.attachThreadObserver({

Callers 3

drainEventsFunction · 0.85
onRemovedFunction · 0.85
stopAllFunction · 0.85

Calls 1

tmsFunction · 0.70

Tested by

no test coverage detected