klee
|
#include <Statistic.h>
Public Member Functions | |
Statistic (const std::string &name, const std::string &shortName) | |
~Statistic ()=default | |
std::uint32_t | getID () const |
getID - Get the unique statistic ID. More... | |
const std::string & | getName () const |
getName - Get the statistic name. More... | |
const std::string & | getShortName () const |
std::uint64_t | getValue () const |
getValue - Get the current primary statistic value. More... | |
operator std::uint64_t () const | |
operator std::uint64_t - Get the current primary statistic value. More... | |
Statistic & | operator++ () |
operator++ - Increment the statistic by 1. More... | |
Statistic & | operator+= (std::uint64_t addend) |
operator+= - Increment the statistic by More... | |
Private Attributes | |
std::uint32_t | id |
const std::string | name |
const std::string | shortName |
Friends | |
class | StatisticManager |
class | StatisticRecord |
Statistic - A named statistic instance.
The Statistic class holds information about the statistic, but not the actual values. Values are managed by the global StatisticManager to enable transparent support for instruction level and call path level statistics.
Definition at line 26 of file Statistic.h.
Statistic::Statistic | ( | const std::string & | name, |
const std::string & | shortName | ||
) |
Definition at line 67 of file Statistics.cpp.
References getStatisticManager(), and klee::StatisticManager::registerStatistic().
|
default |
|
inline |
getID - Get the unique statistic ID.
Definition at line 40 of file Statistic.h.
References id.
Referenced by klee::StatsTracker::writeIStats().
|
inline |
getName - Get the statistic name.
Definition at line 43 of file Statistic.h.
References name.
Referenced by klee::StatsTracker::writeIStats().
|
inline |
getShortName - Get the "short" statistic name, used in callgrind output for example.
Definition at line 47 of file Statistic.h.
References shortName.
Referenced by klee::StatsTracker::writeIStats().
std::uint64_t Statistic::getValue | ( | ) | const |
getValue - Get the current primary statistic value.
Definition at line 77 of file Statistics.cpp.
References klee::StatisticManager::getValue(), and klee::theStatisticManager.
Referenced by operator std::uint64_t(), QueryLoggingSolver::startQuery(), and klee::StatsTracker::stepInstruction().
|
inline |
operator std::uint64_t - Get the current primary statistic value.
Definition at line 53 of file Statistic.h.
References getValue().
|
inline |
operator++ - Increment the statistic by 1.
Definition at line 56 of file Statistic.h.
Statistic & Statistic::operator+= | ( | std::uint64_t | addend | ) |
operator+= - Increment the statistic by
Definition at line 72 of file Statistics.cpp.
References klee::StatisticManager::incrementStatistic(), and klee::theStatisticManager.
|
friend |
Definition at line 27 of file Statistic.h.
|
friend |
Definition at line 28 of file Statistic.h.
|
private |
Definition at line 31 of file Statistic.h.
Referenced by klee::Executor::dumpStates(), getID(), klee::StatisticManager::getIndexedValue(), klee::StatisticRecord::getValue(), klee::StatisticManager::getValue(), klee::StatisticManager::incrementIndexedValue(), klee::StatisticManager::incrementStatistic(), klee::StatisticRecord::incrementValue(), klee::StatisticManager::registerStatistic(), and klee::StatisticManager::setIndexedValue().
|
private |
Definition at line 32 of file Statistic.h.
Referenced by getName().
|
private |
Definition at line 33 of file Statistic.h.
Referenced by getShortName().