
procsnap – a minimal Linux process profiler in C (no dependencies, suckless philosophy)
I wrote a small CLI tool that snapshots /proc info for a given process — name, state, PPID, memory usage, cmdline. It also supports JSON output, process search by name, and a diff mode to compare a process state over time.
No external dependencies. Single binary. ~600 LOC.
procsnap <pid> / procsnap --json <pid> / procsnap --diff <pid> / procsnap -g <name>
Source: github.com/DankDown10256/procsnap
Feedback welcome — especially if you find edge cases or have ideas for v1.1 or to help me create a doc.