# HG changeset patch # User IBBoard # Date 1609702346 0 # Node ID dc0cf6bc9fbeae92fb05707d966ab3bd2c09df10 # Parent c2584db4a6509bb9048f482d01fa6fe20bccabf9 Add titles to graphs diff -r c2584db4a650 -r dc0cf6bc9fbe load-graph --- a/load-graph Wed Dec 30 17:22:29 2020 +0000 +++ b/load-graph Sun Jan 03 19:32:26 2021 +0000 @@ -21,14 +21,14 @@ cpu_lines+=("LINE1:core${i}#99000040:\"Core-${i}\"") done -rrdtool graph /tmp/load-percent.png -w 1280 -h 1024 -a PNG --start "$start" --end "$end" \ +rrdtool graph /tmp/load-percent.png -w 1280 -h 1024 -a PNG --start "$start" --end "$end" --title "CPU/GPU load" \ --vertical-label "Usage (%)" \ ${cpu_lines[@]} \ DEF:CPU=$HOME/.load.rrd:core_avg:AVERAGE \ DEF:GPU=$HOME/.load.rrd:GPU:AVERAGE \ LINE2:CPU#990000:"CPU" \ LINE2:GPU#009900:"GPU" \ -&& rrdtool graph /tmp/load-type.png -w 1280 -h 1024 -a PNG --start "$start" --end "$end" \ +&& rrdtool graph /tmp/load-type.png -w 1280 -h 1024 -a PNG --start "$start" --end "$end" --title "CPU task types" \ --vertical-label "Usage (%)" \ DEF:user=$HOME/.load.rrd:user:AVERAGE \ DEF:system=$HOME/.load.rrd:system:AVERAGE \ @@ -36,7 +36,7 @@ AREA:iowait#888888:"I/O Wait" \ STACK:system#6666FF:"System" \ STACK:user#CCCC66:"User" \ -&& rrdtool graph /tmp/load-memory.png -w 1280 -h 1024 -a PNG --start "$start" --end "$end" \ +&& rrdtool graph /tmp/load-memory.png -w 1280 -h 1024 -a PNG --start "$start" --end "$end" --title "Memory" \ --vertical-label "Usage (%)" \ DEF:mem_used=$HOME/.load.rrd:mem_used:AVERAGE \ DEF:mem_buffers=$HOME/.load.rrd:mem_buffers:AVERAGE \