# HG changeset patch # User Tomas Zeman # Date 1544535600 -3600 # Node ID 1eada2e65e7a5a5f4bc964c1589ec26bb5f5a7e3 # Parent 968d93e433265419e94b9ca0d33bec6b524e3f93 procstat rusage monitoring 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 ' |' '_ '