22 #ifndef OTAWA_STATS_BBSTATCOLLECTOR_H_
23 #define OTAWA_STATS_BBSTATCOLLECTOR_H_
38 virtual int total(
void);
44 void process(Collector& collector);
This interface class must be implemented by any program that wants to collect statistics for the curr...
Definition: StatCollector.h:43
This class alleviates the work of building a statistics collector.
Definition: BBStatCollector.h:30
virtual void processCFG(Collector &collector, CFG *cfg)
Definition: stats_BBStatCollector.cpp:73
CFG * _cfg
Definition: BBStatCollector.h:46
dtd::Element bb(dtd::make("bb", _BB).attr(id).attr(address).attr(size))
Control Flow Graph representation.
Definition: CFG.h:42
virtual void collect(Collector &collector)
Called to collect the statistics.
Definition: stats_BBStatCollector.cpp:51
BBStatCollector(WorkSpace *ws)
Build the BB statistics collector.
Definition: stats_BBStatCollector.cpp:45
A statistics collector allows to access statistics produced by an analysis.
Definition: StatCollector.h:30
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
virtual int total(void)
Default implementation of a total as the sum of the total of each basic block (method total(BasicBloc...
Definition: stats_BBStatCollector.cpp:205
int _total
Definition: BBStatCollector.h:47
void process(Collector &collector)
Process basic block of the current CFG.
Definition: stats_BBStatCollector.cpp:64
CFG * cfg(void) const
Definition: BBStatCollector.h:37
WorkSpace * _ws
Definition: BBStatCollector.h:45
WorkSpace * ws(void) const
Definition: BBStatCollector.h:36