kcachegrind
#include <eventtype.h>
Public Member Functions | |
EventType (const QString &name, const QString &longName=QString(), const QString &formula=QString()) | |
const QString & | formula () |
int | histCost (ProfileCostArray *c, double total, double *hist) |
bool | isReal () |
const QString & | longName () |
const QString & | name () |
QString | parsedFormula () |
QString | parsedRealFormula () |
bool | parseFormula () |
int | realIndex () |
EventTypeSet * | set () |
void | setEventTypeSet (EventTypeSet *m) |
void | setFormula (const QString &) |
void | setLongName (const QString &n) |
void | setName (const QString &n) |
void | setRealIndex (int r=ProfileCostArray::MaxRealIndex) |
SubCost | subCost (ProfileCostArray *) |
Static Public Member Functions | |
static void | add (EventType *, bool overwriteExisting=true) |
static EventType * | knownDerivedType (const QString &) |
static EventType * | knownRealType (const QString &) |
static EventType * | knownType (int) |
static int | knownTypeCount () |
static bool | remove (const QString &) |
Detailed Description
A cost type, e.g.
"L1 Read Miss", short "l1rm".
We distinguish "real" cost types, where the values come from the trace file, and "virtual" cost types, which are calculated from the real ones.
For a virtual cost type, set a formula to calculate it: e.g. for "Read Misses" : "l1rm + l2rm". To allow for parsing, you must specify a EventTypeSet with according cost types (e.g. "l1rm" and "l2rm" for above formula).
The cost type with empty name is the "const" cost type.
Definition at line 43 of file eventtype.h.
Constructor & Destructor Documentation
|
explicit |
<name> is a short (non-localized) identifier for the cost type, e.g.
"l1rm". <longName> is a long localized string, e.g. "L1 Read Miss" <formula> uses short names to reference other types
Definition at line 31 of file eventtype.cpp.
Member Function Documentation
|
static |
Definition at line 263 of file eventtype.cpp.
|
inline |
Definition at line 67 of file eventtype.h.
int EventType::histCost | ( | ProfileCostArray * | c, |
double | total, | ||
double * | hist | ||
) |
Definition at line 214 of file eventtype.cpp.
|
inline |
Definition at line 70 of file eventtype.h.
Definition at line 249 of file eventtype.cpp.
Definition at line 236 of file eventtype.cpp.
|
static |
Definition at line 312 of file eventtype.cpp.
|
static |
Definition at line 291 of file eventtype.cpp.
|
inline |
Definition at line 66 of file eventtype.h.
|
inline |
Definition at line 65 of file eventtype.h.
QString EventType::parsedFormula | ( | ) |
Definition at line 161 of file eventtype.cpp.
QString EventType::parsedRealFormula | ( | ) |
Definition at line 169 of file eventtype.cpp.
bool EventType::parseFormula | ( | ) |
Definition at line 74 of file eventtype.cpp.
|
inline |
Definition at line 69 of file eventtype.h.
|
static |
Definition at line 298 of file eventtype.cpp.
|
inline |
Definition at line 68 of file eventtype.h.
void EventType::setEventTypeSet | ( | EventTypeSet * | m | ) |
Definition at line 55 of file eventtype.cpp.
void EventType::setFormula | ( | const QString & | formula | ) |
Definition at line 47 of file eventtype.cpp.
|
inline |
Definition at line 58 of file eventtype.h.
|
inline |
Definition at line 57 of file eventtype.h.
void EventType::setRealIndex | ( | int | r = ProfileCostArray::MaxRealIndex | ) |
Definition at line 63 of file eventtype.cpp.
SubCost EventType::subCost | ( | ProfileCostArray * | c | ) |
Definition at line 196 of file eventtype.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.