measure disk cache flush times

This commit is contained in:
Arvid Norberg
2011-03-15 01:44:32 +00:00
parent 9812626cf0
commit 7dde47b98a
4 changed files with 20 additions and 4 deletions

View File

@@ -945,6 +945,7 @@ namespace aux {
":disk cache size"
":disk buffer allocations"
":disk hash time"
":disk cache time"
"\n\n", m_stats_logger);
}
#endif
@@ -2714,7 +2715,7 @@ 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"
"%f\t%f\t%f\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\n"
"%d\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
, int(m_stat.total_upload() - m_last_uploaded)
, int(m_stat.total_download() - m_last_downloaded)
@@ -2793,6 +2794,7 @@ namespace aux {
, cs.cache_size
, cs.total_used_buffers
, int(cs.average_hash_time)
, int(cs.average_cache_time)
);
m_last_cache_status = cs;
m_last_failed = m_total_failed_bytes;