• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

Public Member Functions | Static Public Member Functions | List of all members
EventType Class Reference

#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

EventType::EventType ( const QString &  name,
const QString &  longName = QString(),
const QString &  formula = QString() 
)
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

void EventType::add ( EventType *  t,
bool  overwriteExisting = true 
)
static

Definition at line 263 of file eventtype.cpp.

const QString& EventType::formula ( )
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.

bool EventType::isReal ( )
inline

Definition at line 70 of file eventtype.h.

EventType * EventType::knownDerivedType ( const QString &  n)
static

Definition at line 249 of file eventtype.cpp.

EventType * EventType::knownRealType ( const QString &  n)
static

Definition at line 236 of file eventtype.cpp.

EventType * EventType::knownType ( int  i)
static

Definition at line 312 of file eventtype.cpp.

int EventType::knownTypeCount ( )
static

Definition at line 291 of file eventtype.cpp.

const QString& EventType::longName ( )
inline

Definition at line 66 of file eventtype.h.

const QString& EventType::name ( )
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.

int EventType::realIndex ( )
inline

Definition at line 69 of file eventtype.h.

bool EventType::remove ( const QString &  n)
static

Definition at line 298 of file eventtype.cpp.

EventTypeSet* EventType::set ( )
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.

void EventType::setLongName ( const QString &  n)
inline

Definition at line 58 of file eventtype.h.

void EventType::setName ( const QString &  n)
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:
  • eventtype.h
  • eventtype.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal