guider
guider copied to clipboard
Subsecond cpu top feature
trafficstars
I need to draw cpu usage of some processes with subsecond resolution. Currently, this fails with 3.9.7:
st ~/guider (master) $ python2.7 guider/guider.py top -g Xorg -i 0.1 -R 10s -o .
_____ _ _
/ ____| (_) | |
| | __ _ _ _ __| | ___ _ __
| | |_ | | | | |/ _` |/ _ \ '__|
| |__| | |_| | | (_| | __/ |
\_____|\__,_|_|\__,_|\___|_| ver.3.9.7_201227 on python_2.7
[ERROR] wrong value with -i option, input number in integer format
st ~/guider (master) $
Tested on Ubuntu 20.04.1 VM.
Subsecond interval is not supported in Guider top mode because of overhead :)
If you want to see detailed task activity, You can use rec and draw command.
# ./guider.py rec -s -R 10s
# ./guider.py draw guider.dat -q TIMEUNIT:ms
If you don't use -q option, It will draw time slices in default ns unit.