summaryrefslogtreecommitdiff
path: root/lib/gras_impl/stats.hpp
blob: 03fdf3a9a948bb7ccaeae3a8ae9f6966e13dfa8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.

#ifndef INCLUDED_LIBGRAS_IMPL_STATS_HPP
#define INCLUDED_LIBGRAS_IMPL_STATS_HPP

#include <gras/chrono.hpp>
#include <vector>

namespace gras
{

struct BlockStats
{
    BlockStats(void)
    {
        start_time = 0;
        stop_time = 0;
        work_count = 0;
        time_last_work = 0;
        total_time_prep = 0;
        total_time_work = 0;
        total_time_post = 0;
        total_time_input = 0;
        total_time_output = 0;
    }

    time_ticks_t start_time;
    time_ticks_t stop_time;

    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_prep;
    time_ticks_t total_time_work;
    time_ticks_t total_time_post;
    time_ticks_t total_time_input;
    time_ticks_t total_time_output;
};

} //namespace gras

#endif /*INCLUDED_LIBGRAS_IMPL_STATS_HPP*/