proc-pid-stat
--proc-pid-statv1.0.0Converts `/proc/<pid>/stat` file to JSON
Linuxfileslurpable
$ cat input.txt | jc-rs --proc-pid-statA real pair
From the reference corpus (linux-proc/pid_stat.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_statlinux-proc
1 (systemd) S 0 1 1 0 -1 4194560 23478 350218 99 472 107 461 2672 4402 20 0 1 0 128 174063616 3313 18446744073709551615 94188219072512 94188219899461 140725059845296 0 0 0 671173123 4096 1260 1 0 0 17 0 0 0 18 0 0 94188220274448 94188220555504 94188243599360 140725059845923 140725059845934 140725059845934 140725059846125 0
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{ "pid": 1, "comm": "systemd", "state": "S", "ppid": 0, "pgrp": 1, "session": 1, "tty_nr": 0, "tpg_id": -1, "flags": 4194560, "minflt": 23478, "cminflt": 350218, "majflt": 99, "cmajflt": 472, "utime": 107, "stime": 461, "cutime": 2672, "cstime": 4402, "priority": 20, "nice": 0, "num_threads": 1, "itrealvalue": 0, "starttime": 128, "vsize": 174063616, "rss": 3313, "rsslim": 18446744073709551615, "startcode": 94188219072512, "endcode": 94188219899461, "startstack": 140725059845296, "kstkeep": 0, "kstkeip": 0, "signal": 0, "blocked": 671173123, "sigignore": 4096, "sigcatch": 1260, "wchan": 1, "nswap": 0, "cnswap": 0, "exit_signal": 17, "processor": 0, "rt_priority": 0, "policy": 0, "delayacct_blkio_ticks": 18, "guest_time": 0, "cguest_time": 0, "start_data": 94188220274448, "end_data": 94188220555504, "start_brk": 94188243599360, "arg_start": 140725059845923, "arg_end": 140725059845934, "env_start": 140725059845934, "env_end": 140725059846125, "exit_code": 0, "state_pretty": "Sleeping in an interruptible wait" }
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_stat.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