feat: log per-command processing time (MK-1) #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/per-command-timing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Emits a wall-clock duration for every monkey subcommand so users can compare filter cost, spot pathologically slow inputs, and feed capacity planning. No new dependencies, just
std::time::Instant.monkey image <verb>: trailing success line gains a(1.23s)suffix. Entry header removed since timing is only known at the end. Coversrun_filterand the special-caseColors/Density/Diffarms.monkey noteshrink: per-phase elapsed (palette/apply/save) plus a finalnoteshrink: <total>line.--quietcontinues to suppress everything.monkey pdf extract-images: trailing summary line gains a(1.23s)suffix.monkey video convert: left alone; ffmpeg already reports its own timing.Duration formatter: sub-second prints as
Nms, longer asN.NNs.#MK-1
Test plan
just check(fmt, clippy, build, tests, docker compile check)monkey image local-contrastprintslocal-contrast: in -> out (0ms)monkey noteshrinkprints all four lines;--quietprints nothingmonkey pdf extract-imagesagainst a real PDF