Otawa
0.10
|
This class is used to store statistics about the categories about cache accesses. More...
#include <otawa/cache/categories.h>
Public Member Functions | |
CategoryStats (void) | |
void | reset (void) |
Reset the statistics. More... | |
void | add (category_t cat) |
void | addLinked (void) |
Add a new linked l-block to the statistics. More... | |
int | get (category_t cat) const |
Get the counter of a category. More... | |
int | total (void) const |
Get the total count of categories. More... | |
int | linked (void) const |
Get the count of linked statistics. More... | |
Private Attributes | |
int | counts [NOT_CLASSIFIED+1] |
int | _total |
int | _linked |
This class is used to store statistics about the categories about cache accesses.
It it provided by cache category builders.
CategoryStats::CategoryStats | ( | void | ) |
References reset().
|
inline |
References otawa::NOT_CLASSIFIED.
Referenced by otawa::CAT2Builder::processLBlockSet().
|
inline |
Add a new linked l-block to the statistics.
Referenced by otawa::LinkedBlocksDetector::recordBlocks().
|
inline |
Get the counter of a category.
cat | Category to get counter for. |
References otawa::NOT_CLASSIFIED.
Referenced by otawa::cache::operator<<().
|
inline |
Get the count of linked statistics.
Referenced by otawa::cache::operator<<().
void CategoryStats::reset | ( | void | ) |
Reset the statistics.
References _linked, _total, counts, and otawa::cache::NOT_CLASSIFIED.
Referenced by CategoryStats(), and otawa::CAT2Builder::configure().
|
inline |
Get the total count of categories.
Referenced by otawa::cache::operator<<().
|
private |
Referenced by reset().
|
private |
Referenced by reset().
|
private |
Referenced by reset().