add written disk blocks to session stats
This commit is contained in:
parent
03a7442532
commit
ca4a053d1a
|
@ -60,6 +60,6 @@ gen_report('piece_picker_end_game', ['end game piece picker blocks', 'strict end
|
||||||
gen_report('piece_picker', ['piece picks', 'reject piece picks', 'unchoked piece picks', 'incoming redundant piece picks', 'incoming piece picks', 'end game piece picks', 'snubbed piece picks'])
|
gen_report('piece_picker', ['piece picks', 'reject piece picks', 'unchoked piece picks', 'incoming redundant piece picks', 'incoming piece picks', 'end game piece picks', 'snubbed piece picks'])
|
||||||
gen_report('bandwidth', ['% failed payload bytes', '% wasted payload bytes', '% protocol bytes'])
|
gen_report('bandwidth', ['% failed payload bytes', '% wasted payload bytes', '% protocol bytes'])
|
||||||
gen_report('disk_time', ['disk read time', 'disk write time', 'disk queue time'])
|
gen_report('disk_time', ['disk read time', 'disk write time', 'disk queue time'])
|
||||||
gen_report('disk_cache', ['disk block read', 'read cache hits'])
|
gen_report('disk_cache', ['disk block read', 'read cache hits', 'disk block written'])
|
||||||
gen_report('disk_queue', ['disk queue size', 'disk queued bytes'])
|
gen_report('disk_queue', ['disk queue size', 'disk queued bytes'])
|
||||||
|
|
||||||
|
|
|
@ -928,6 +928,7 @@ namespace aux {
|
||||||
":disk queued bytes"
|
":disk queued bytes"
|
||||||
":read cache hits"
|
":read cache hits"
|
||||||
":disk block read"
|
":disk block read"
|
||||||
|
":disk block written"
|
||||||
"\n\n", m_stats_logger);
|
"\n\n", m_stats_logger);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -2696,7 +2697,8 @@ namespace aux {
|
||||||
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
||||||
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
||||||
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
||||||
"%f\t%f\t%f\t%d\t%d\t%d\t%d\t%d\t%d\t%d\n"
|
"%f\t%f\t%f\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t"
|
||||||
|
"%d\n"
|
||||||
, total_milliseconds(now - m_last_log_rotation) / 1000.f
|
, total_milliseconds(now - m_last_log_rotation) / 1000.f
|
||||||
, int(upload_rate)
|
, int(upload_rate)
|
||||||
, int(download_rate)
|
, int(download_rate)
|
||||||
|
@ -2767,6 +2769,7 @@ namespace aux {
|
||||||
, int(cs.queued_bytes)
|
, int(cs.queued_bytes)
|
||||||
, int(cs.blocks_read_hit - m_last_cache_status.blocks_read_hit)
|
, int(cs.blocks_read_hit - m_last_cache_status.blocks_read_hit)
|
||||||
, int(cs.blocks_read - m_last_cache_status.blocks_read)
|
, int(cs.blocks_read - m_last_cache_status.blocks_read)
|
||||||
|
, int(cs.blocks_written - m_last_cache_status.blocks_written)
|
||||||
);
|
);
|
||||||
m_last_cache_status = cs;
|
m_last_cache_status = cs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue