summaryrefslogtreecommitdiff
path: root/src/libvmon/vmon.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-02-06 18:14:56 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-02-06 18:19:53 -0800
commitc0cd48a1a6f5c9f4592f5ce215df9c798cb4720a (patch)
tree0b1beae4c9abe02e0ecd4e98775c676726307643 /src/libvmon/vmon.c
parent0c9563656ce00b0ad2608ec9b81301080be163dc (diff)
vmon: add %P fmt specifier for getpid()
vmon already handles SIGUSR1 for producing png snapshots on demand, adding a fmt specifier for substituting the vmon PID makes for convenient scripting of triggering such snapshots. i.e: $ vmon -- /bin/bash -c 'for((i = 0; i < 10; i++)); do kill -USR1 %P; sleep 1s; done' Would produce ten png snapshots of the charts on 1-second intervals.
Diffstat (limited to 'src/libvmon/vmon.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved