From 1f200e792231b2c00b4cd629661b06a8fadcdf69 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Fri, 29 Apr 2011 15:15:53 +0000 Subject: [PATCH] * Fixed 'not' command. * Improved logging. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1224 e378c898-3ddf-0310-93e7-cc216c733640 --- doc/log_stats.plot | 81 +++++++++++++++++++++++++--------------------- src/command_ui.cc | 20 ++++++++---- 2 files changed, 58 insertions(+), 43 deletions(-) diff --git a/doc/log_stats.plot b/doc/log_stats.plot index 7be9bd5b..7d9dafd7 100644 --- a/doc/log_stats.plot +++ b/doc/log_stats.plot @@ -13,6 +13,7 @@ gnuplot << EOF # 9) pieces.stats.total_size # 10) pieces.hash.queue_size # +# file.append = (cat,/foo/bandwidth_stats.,(system.pid)),"timestamp","\"upload rate\"","\"upload total\"","\"download rate\"","\"download total\"","\"memory usage\"","\"sync queue\"","\"block count\"","\"total size\"","\"hash queue size\"" # schedule = log_bandwidth_stats,5,10,((file.append,((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)),((pieces.memory.current)),((pieces.memory.sync_queue)),((pieces.memory.block_count)),((pieces.stats.total_size)),((pieces.hash.queue_size)))) # # 1) system.time_seconds @@ -25,80 +26,88 @@ gnuplot << EOF # 6) view.size,seeding # 7) view.size,active # +# file.append = (cat,/foo/peer_stats.,(system.pid)),"timestamp","\"upload unchoked\"","\"download unchoked\"","\"open sockets\"","leeching","seeding","active" # schedule = log_peer_stats,5,10,((file.append,((cat,/foo/peer_stats.,((system.pid)))),((system.time_seconds)),((throttle.unchoked_uploads)),((throttle.unchoked_downloads)),((network.open_sockets)),((view.size,leeching)),((view.size,seeding)),((view.size,active)))) # +# Choke groups: # -# file.append = (cat,/foo/choke_group_stats.,(system.pid)),"\"timestamp\"","\"leech unchoked\"","\"leech queued\"","\"seed unchoked\"","\"seed queued\"" +# file.append = (cat,/foo/choke_group_stats.,(system.pid)),"timestamp","\"leech unchoked\"","\"leech queued\"","\"seed unchoked\"","\"seed queued\"" # schedule = log_choke_group_stats,5,10,((file.append,((cat,/foo/choke_group_stats.,((system.pid)))),((system.time_seconds)),((choke_group.up.unchoked,0)),((choke_group.up.queued,0)),((choke_group.up.total,0)),((choke_group.up.unchoked,1)),((choke_group.up.queued,1)),((choke_group.up.total,1)))) +# +# Mincore stats: +# +# file.append = (cat,/foo/mincore_stats.,(system.pid)),"timestamp","\"incore cont. /10s\"","\"not incore cont. /10s\"","\"incore new /10s\"","\"not incore new /10s\"","\"incore break /10s\"","\"sync success /10s\"","\"sync failed /10s\"","\"sync not synced /10s\"","\"sync not deallocated /10s\"","\"alloc failed /10s\"","\"allocate velocity /10s\"","\"deallocate velocity /10s\"" +# log.libtorrent = mincore_stats,(cat,"/foo/mincore_stats.",(system.pid)) -set terminal png size 1024,600 + +set terminal png size 1024,768 enhanced set xdata time set timefmt "%s" set format x "%H:%M" set format y2 "%.0f" set y2tics set autoscale xfix - -grab(x)=(xmax)?max=x:0; +set key autotitle columnhead set output "output_$1_sockets.png" -plot "peer_stats.$1" using 1:7 smooth bezier with lines lw 4 title 'active',\ - "peer_stats.$1" using 1:5 smooth bezier with lines lw 4 title 'leeching',\ - "peer_stats.$1" using 1:6 smooth bezier with lines lw 4 title 'seeding',\ - "