(dir: string)
| 41 | } |
| 42 | |
| 43 | function graphCounts(dir: string): { nodes: number; edges: number } { |
| 44 | const cg = CodeGraph.openSync(dir); |
| 45 | try { |
| 46 | const stats = cg.getStats(); |
| 47 | return { nodes: stats.nodeCount, edges: stats.edgeCount }; |
| 48 | } finally { |
| 49 | cg.close(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | function isAlive(pid: number): boolean { |
| 54 | try { |
no test coverage detected