Otawa  0.10
otawa::StatInfo Class Reference

Aggregator of statistics put on the workspace. More...

#include <otawa/stats/StatInfo.h>

Classes

class  Iter
 

Static Public Member Functions

static void add (WorkSpace *ws, StatCollector &stats)
 Add a statistics collector to the workspace. More...
 
static void remove (WorkSpace *ws, StatCollector &stats)
 Remove a statistics. More...
 

Static Public Attributes

static Identifier< StatInfo * > ID
 Identifier of statistics information. More...
 

Static Private Member Functions

static Vector< StatCollector * > & get (WorkSpace *ws)
 

Private Attributes

Vector< StatCollector * > stats
 

Detailed Description

Aggregator of statistics put on the workspace.

Accessible using StatInfo::ID identifier.

Member Function Documentation

void otawa::StatInfo::add ( WorkSpace ws,
StatCollector stats 
)
static

Add a statistics collector to the workspace.

Parameters
wsCurrent workspace.
statsStatistics collector to add.

References ID, and stats.

Referenced by otawa::Processor::recordStat().

Vector< StatCollector * > & otawa::StatInfo::get ( WorkSpace ws)
staticprivate

References elm::dtd::empty, ID, and stats.

void otawa::StatInfo::remove ( WorkSpace ws,
StatCollector stats 
)
static

Remove a statistics.

Parameters
wsCurrent workspace.
statsStatistics to remove.

References ID, and stats.

Member Data Documentation

Identifier< StatInfo * > otawa::StatInfo::ID
static

Identifier of statistics information.

Hooks

Referenced by add(), get(), and remove().

Vector<StatCollector *> otawa::StatInfo::stats
private

Referenced by add(), get(), and remove().


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