22 #ifndef OTAWA_CACHE_CATEGORIES_H_
23 #define OTAWA_CACHE_CATEGORIES_H_
25 #include <elm/assert.h>
59 inline int total(
void)
const {
return _total; }
60 inline int linked(
void)
const {
return _linked; }
91 #endif // OTAWA_CACHE_FEATURES_H_
Definition: categories.h:39
void add(category_t cat)
Definition: categories.h:53
const category_t FIRST_HIT
Definition: categories.h:80
This class is used to store statistics about the categories about cache accesses. ...
Definition: categories.h:49
Definition: categories.h:40
Definition: categories.h:38
int _total
Definition: categories.h:64
int total(void) const
Get the total count of categories.
Definition: categories.h:59
Definition: categories.h:41
Identifier< CategoryStats * > & CATEGORY_STATS
Definition: cache_categories.cpp:162
p::feature ICACHE_CATEGORY_FEATURE
This feature asserts that a category is assigned at each l-block involved in the current task...
const category_t NOT_CLASSIFIED
Definition: categories.h:83
elm::io::Output & operator<<(elm::io::Output &out, Address addr)
Definition: base.cpp:188
int linked(void) const
Get the count of linked statistics.
Definition: categories.h:60
Definition: categories.h:43
const category_t INVALID_CATEGORY
Definition: categories.h:78
const category_t ALWAYS_MISS
Definition: categories.h:82
category_t
Definition: categories.h:37
StringOption cache(command, 'c',"cache","used cache","path","")
void addLinked(void)
Add a new linked l-block to the statistics.
Definition: categories.h:55
const category_t FIRST_MISS
Definition: categories.h:81
const category_t ALWAYS_HIT
Definition: categories.h:79
sys::SystemOutStream & out
cache::CategoryStats CategoryStats
Definition: categories.h:86
Identifier< category_t > & CATEGORY
Definition: cache_categories.cpp:160
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
Identifier< BasicBlock * > & CATEGORY_HEADER
Definition: cache_categories.cpp:161
otawa::cache::category_t category_t
Definition: categories.h:77
Definition: categories.h:42
Shortcut to create a feature with a maker (without the mess of SilentFeature).
Definition: AbstractFeature.h:51