diff options
author | Josh Blum | 2013-03-25 02:03:19 -0500 |
---|---|---|
committer | Josh Blum | 2013-03-25 02:03:19 -0500 |
commit | 8b24a30ef875d9fcfa419d9a99c709f32602de94 (patch) | |
tree | 24bd316532f852eb230fb4cf6b3ae6752eae27f1 /lib | |
parent | 74b41e15aff63a279d8c1b040d70c7493f104432 (diff) | |
download | sandhi-8b24a30ef875d9fcfa419d9a99c709f32602de94.tar.gz sandhi-8b24a30ef875d9fcfa419d9a99c709f32602de94.tar.bz2 sandhi-8b24a30ef875d9fcfa419d9a99c709f32602de94.zip |
gras: added io total counts chart
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gras_impl/stats.hpp | 2 | ||||
-rw-r--r-- | lib/top_block_stats.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/gras_impl/stats.hpp b/lib/gras_impl/stats.hpp index b7b4553..3f78b8d 100644 --- a/lib/gras_impl/stats.hpp +++ b/lib/gras_impl/stats.hpp @@ -13,6 +13,7 @@ struct BlockStats { BlockStats(void) { + init_time = time_now(); start_time = 0; stop_time = 0; work_count = 0; @@ -24,6 +25,7 @@ struct BlockStats total_time_output = 0; } + time_ticks_t init_time; time_ticks_t start_time; time_ticks_t stop_time; diff --git a/lib/top_block_stats.cpp b/lib/top_block_stats.cpp index e5fd96d..04fc7ae 100644 --- a/lib/top_block_stats.cpp +++ b/lib/top_block_stats.cpp @@ -45,6 +45,7 @@ std::string TopBlock::get_stats(const std::string &) std::string block_xml; block_xml += str(boost::format(" <tps>%llu</tps>\n") % time_tps()); block_xml += str(boost::format(" <stats_time>%llu</stats_time>\n") % message.stats_time); + block_xml += str(boost::format(" <init_time>%llu</init_time>\n") % stats.init_time); block_xml += str(boost::format(" <start_time>%llu</start_time>\n") % stats.start_time); block_xml += str(boost::format(" <stop_time>%llu</stop_time>\n") % stats.stop_time); block_xml += str(boost::format(" <work_count>%llu</work_count>\n") % stats.work_count); |