summaryrefslogtreecommitdiff
path: root/lib/gras_impl/stats.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-02-17 23:01:03 -0600
committerJosh Blum2013-02-17 23:01:03 -0600
commitf8cca035aacf1578b99f6ffa1bb99ffb052ac27c (patch)
tree37f906338284ec6a48886079f4d8621549b0971b /lib/gras_impl/stats.hpp
parentafd0575bc2eef7f2a97c8ce4cadb328ceb491d10 (diff)
downloadsandhi-f8cca035aacf1578b99f6ffa1bb99ffb052ac27c.tar.gz
sandhi-f8cca035aacf1578b99f6ffa1bb99ffb052ac27c.tar.bz2
sandhi-f8cca035aacf1578b99f6ffa1bb99ffb052ac27c.zip
gras: added stats for produced/consumed
Diffstat (limited to 'lib/gras_impl/stats.hpp')
-rw-r--r--lib/gras_impl/stats.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gras_impl/stats.hpp b/lib/gras_impl/stats.hpp
index 138b231..9c9c8e1 100644
--- a/lib/gras_impl/stats.hpp
+++ b/lib/gras_impl/stats.hpp
@@ -4,6 +4,7 @@
#define INCLUDED_LIBGRAS_IMPL_STATS_HPP
#include <gras/chrono.hpp>
+#include <vector>
namespace gras
{
@@ -13,7 +14,12 @@ struct BlockStats
time_ticks_t start_time;
time_ticks_t stop_time;
- size_t work_count;
+ std::vector<item_index_t> items_consumed;
+ std::vector<item_index_t> tags_consumed;
+ std::vector<item_index_t> items_produced;
+ std::vector<item_index_t> tags_produced;
+
+ item_index_t work_count;
time_ticks_t time_last_work;
time_ticks_t total_time_work;
time_ticks_t total_time_work_other;