(s)
| 135 | |
| 136 | // module name of a target string, for the exclude step |
| 137 | function targetModuleName(s) { |
| 138 | s = String(s).trim(); |
| 139 | if (s.includes("@")) return s.split("@")[1].trim(); |
| 140 | if (s.includes("+")) return s.split("+")[0].trim(); |
| 141 | // absolute / symbol: resolve then look up |
| 142 | const a = resolveTarget(s); |
| 143 | if (!a) return null; |
| 144 | let m = null; try { m = Process.findModuleByAddress(a); } catch (e) {} |
| 145 | return m ? m.name : null; |
| 146 | } |
| 147 | |
| 148 | // --- Stalker.exclude: confine instrumentation ------------------------------- |
| 149 | let excludedOnce = false; |
no test coverage detected