dlvhex  2.5.0
benchmark::simple::BenchmarkController::Stat Struct Reference

Information about a single benchmark value. More...

#include <include/dlvhex2/Benchmarking.h>

Collaboration diagram for benchmark::simple::BenchmarkController::Stat:

Public Member Functions

 Stat (const std::string &name)
 Constructor.

Data Fields

std::string name
 Counter name.
Count count
 Number of calls.
Count level
 Nesting level (1 = started once, 2 = started twice, ...)
Count prints
 Number of times the counter was started since it was printed last.
Time start
 Timestamp when the counter was started.
Duration duration
 Sum of durations the counter was run so far.
bool running
 Flag whether the counter currently runs.

Detailed Description

Information about a single benchmark value.

Definition at line 185 of file Benchmarking.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
nameSee Stat::name.

Definition at line 54 of file Benchmarking.cpp.


Field Documentation

Nesting level (1 = started once, 2 = started twice, ...)

Definition at line 192 of file Benchmarking.h.

Referenced by benchmark::simple::BenchmarkController::start(), and benchmark::simple::BenchmarkController::stop().

Count benchmark::simple::BenchmarkController::Stat::prints

Number of times the counter was started since it was printed last.

Definition at line 194 of file Benchmarking.h.

Referenced by benchmark::simple::BenchmarkController::count(), and benchmark::simple::BenchmarkController::printInformationContinous().


The documentation for this struct was generated from the following files: