diff --git a/doc/log_stats.plot b/doc/log_stats.plot index 8e7fab29..1f1b8663 100644 --- a/doc/log_stats.plot +++ b/doc/log_stats.plot @@ -14,9 +14,10 @@ gnuplot << EOF # 10) $pieces.memory.sync_queue= # 11) $pieces.memory.block_count= # 12) $pieces.stats.total_size= +# 13) $pieces.hash.queue_size= # # log.libtorrent = mincore_stats,(cat,"/foo/mincore_stats.",(system.pid)) -# schedule = log_stats,5,10,((execute,log_rtorrent.sh,((cat,/foo/bandwidth_stats.,((system.pid)))),((system.time_seconds)),((throttle.global_up.rate)),((throttle.global_up.total)),((throttle.global_down.rate)),((throttle.global_down.total)),((throttle.unchoked_uploads)),((throttle.unchoked_downloads)),((view.size,active)),((pieces.memory.current)),((pieces.memory.sync_queue)),((pieces.memory.block_count)),((pieces.stats.total_size)))) +# schedule = log_stats,5,10,((execute,log_rtorrent.sh,((cat,/foo/bandwidth_stats.,((system.pid)))),((system.time_seconds)),((throttle.global_up.rate)),((throttle.global_up.total)),((throttle.global_down.rate)),((throttle.global_down.total)),((throttle.unchoked_uploads)),((throttle.unchoked_downloads)),((view.size,active)),((pieces.memory.current)),((pieces.memory.sync_queue)),((pieces.memory.block_count)),((pieces.stats.total_size)),((pieces.hash.queue_size)))) set terminal png size 1024,600 @@ -29,6 +30,8 @@ set y2tics set autoscale xfix grab(x)=(xmax)?max=x:0; +#div100(x)=(x/100) +divrak(v)=(v>0)?-v:0; set output "output_$1_bandwidth.png" plot "bandwidth_stats.$1" using 1:2 smooth bezier with lines lw 4 title 'Upload rate',\ @@ -41,20 +44,22 @@ plot "bandwidth_stats.$1" using 1:9 smooth bezier with lines lw 4 title 'Memory "bandwidth_stats.$1" using 1:6 smooth bezier with lines lw 2 title 'Upload unchoked' axis x1y2,\ "bandwidth_stats.$1" using 1:7 smooth bezier with lines lw 2 title 'Download unchoked' axis x1y2 -set yrange [0:3900000000.0] -set y2range [0:2000] +#set yrange [0:3900000000.0] +#set y2range [0:2000] set output "output_$1_pieces.png" plot "bandwidth_stats.$1" using 1:9 smooth bezier with lines lw 4 title 'Memory usage' axis x1y1,\ "bandwidth_stats.$1" using 1:10 smooth bezier with lines lw 4 title 'Sync queue Memory' axis x1y1,\ - "mincore_stats.$1" using 1:10 smooth bezier with lines lw 4 title 'Alloc /10s' axis x1y1,\ - "mincore_stats.$1" using 1:11 smooth bezier with lines lw 4 title 'Dealloc /10s' axis x1y1,\ + "