nx_jpegmem_probe.nx
buildroot/runtime/nx_jpegmem_probe.nx
about
nx_jpegmem_probe.nx -- INSTRUMENT: does nx_jpeg_decode_rgb overrun/leak per call?
Decodes the SAME jpeg N times in one process, printing VmRSS after each decode, freeing the
caller-visible RGB each round. A flat RSS = the lib cleans up; a climbing RSS = per-call arena
growth (the OOM suspect for the 12-decode toon run); ARENA-OVERRUN lines localize the write.
usage: nx_jpegmem_probe <file.jpg> <rounds>
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_jpeg_ascii.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 10 | func jp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: jp_out |
| 11 | func jp_out(s: *u8) -> i64 { sys_write(1, s, jp_slen(s)); return 0 } |
| 12 | func jp_outn(v: i64) -> i64 |
| 25 | func jp_rss() -> i64 |
| 57 | func jp_atoi(s: *u8) -> i64 called by 1: main |
| 68 | func main(argc: i64, argv: *i64) -> i64 |