CAF
0.17.6
|
Stores statistics for measuring complexity of incoming batches. More...
#include <inbound_path.hpp>
Classes | |
struct | calculation_result |
Wraps the resulf of stats_t::calculate() . More... | |
struct | measurement |
Wraps a time measurement for a single processed batch. More... | |
Public Member Functions | |
calculation_result | calculate (timespan cycle, timespan desired_complexity) |
Returns the maximum number of items this actor could handle for given cycle length with a minimum of 1. More... | |
void | store (measurement x) |
Adds a measurement to this statistic. | |
void | reset () |
Resets this statistic. | |
Public Attributes | |
int64_t | num_elements |
Total number of elements in all processed batches. | |
timespan | processing_time |
Elapsed time for processing all elements of all batches. | |
Stores statistics for measuring complexity of incoming batches.
calculation_result caf::inbound_path::stats_t::calculate | ( | timespan | cycle, |
timespan | desired_complexity | ||
) |
Returns the maximum number of items this actor could handle for given cycle length with a minimum of 1.