Skip to content
jc-rs
GitHub

proc-pid-statm

--proc-pid-statmv1.0.0

Converts `/proc/<pid>/statm` file to JSON

Linuxfileslurpable
$ cat input.txt | jc-rs --proc-pid-statm

A real pair

From the reference corpus (linux-proc/pid_statm.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

proc_pid_statmlinux-proc
42496 3313 2169 202 0 5180 0
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "size": 42496,
  "resident": 3313,
  "shared": 2169,
  "text": 202,
  "lib": 0,
  "data": 5180,
  "dt": 0
}

Fixture coverage

1/1oracle-valid pairs match under the published structural JSON comparison

Magic syntax

not availableThis parser reads a file or a string rather than a command, so there is nothing for jc-rs to run. Pipe it in.

Source: crates/jc-rs-parsers/src/proc/proc_pid_statm.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare