| 95 | |
| 96 | // Pretty-print as a compact table. |
| 97 | const fmt = (r) => |
| 98 | r.error |
| 99 | ? ` ${r.id.padEnd(13)} ERROR: ${r.error}` |
| 100 | : ` ${r.id.padEnd(13)} ${String(r.chars).padStart(6)}c ${String(r.lines).padStart(4)}L ${String(r.ms).padStart(4)}ms` + |
| 101 | ` ${r.hasEntryPoints ? 'EP ' : ' '}` + |
| 102 | `${r.hasFlowTrace ? 'TRC ' : ' '}` + |
| 103 | `${r.hasRouteManifest ? 'MAN ' : ' '}` + |
| 104 | `${r.hasTopHandler ? 'HND ' : ' '}` + |
| 105 | `${r.hasSmallRepoTail ? 'TAIL' : ' '}`; |
| 106 | console.log(`=== probe-sweep tool=${TOOL} n=${subjects.length} (${Date.now() - t0}ms total) ===`); |
| 107 | console.log(' id chars lines ms signals'); |
| 108 | console.log(' ' + '-'.repeat(56)); |