diff -r 968d93e43326 -r 1eada2e65e7a scripts/procstat-rusage --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/procstat-rusage Tue Dec 11 14:40:00 2018 +0100 @@ -0,0 +1,5 @@ +#!/bin/sh + +_PID=$1 + +exec procstat --libxo=json -r $_PID | jq -r '.procstat.rusage | .[] | to_entries | .[] | @text "-|rusage.\(.key)|\(.value)"' | tr ' |' '_ '