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

kcachegrind

Public Member Functions | List of all members
TraceData Class Reference

#include <tracedata.h>

Inheritance diagram for TraceData:
Inheritance graph
[legend]

Public Member Functions

 TraceData (Logger *l=0)
 
virtual ~TraceData ()
 
bool activateAll (bool active=true)
 
bool activatePart (TracePart *, bool active)
 
bool activateParts (const TracePartList &)
 
bool activateParts (TracePartList, bool active)
 
QString activePartRange ()
 
void addPart (TracePart *)
 
ProfileCostArray * callMax ()
 
TraceClassMap & classMap ()
 
TraceClass * cls (const QString &fnName, QString &shortName)
 
QString command () const
 
virtual TraceData * data ()
 
virtual const TraceData * data () const
 
DynPool * dynPool ()
 
EventTypeSet * eventTypes ()
 
TraceFile * file (const QString &name)
 
TraceFileMap & fileMap ()
 
FixPool * fixPool ()
 
TraceFunction * function (const QString &name, TraceFile *, TraceObject *)
 
TraceFunctionMap::ConstIterator functionBeginIterator () const
 
TraceFunctionCycle * functionCycle (TraceFunction *)
 
const TraceFunctionCycleList & functionCycles ()
 
TraceFunctionMap::ConstIterator functionEndIterator () const
 
TraceFunctionMap::Iterator functionIterator (TraceFunction *)
 
TraceFunctionMap & functionMap ()
 
bool inFunctionCycleUpdate ()
 
void invalidateDynamicCost ()
 
int load (QStringList files)
 
int load (QString file)
 
int load (QIODevice *, const QString &)
 
int maxPartNumber () const
 
int maxThreadID () const
 
TraceObject * object (const QString &name)
 
TraceObjectMap & objectMap ()
 
TracePartList parts () const
 
TracePart * partWithName (const QString &name)
 
void resetSourceDirs ()
 
ProfileCostArray * search (ProfileContext::Type, QString, EventType *ct=0, ProfileCostArray *parent=0)
 
void setCommand (const QString &command)
 
void setMaxPartNumber (int n)
 
void setMaxThreadID (int tid)
 
QString shortTraceName () const
 
ProfileCostArray * totals ()
 
QString traceName () const
 
virtual void update ()
 
void updateClassCycles ()
 
void updateFileCycles ()
 
void updateFunctionCycles ()
 
void updateObjectCycles ()
 
- Public Member Functions inherited from ProfileCostArray
 ProfileCostArray (ProfileContext *)
 
 ProfileCostArray ()
 
virtual ~ProfileCostArray ()
 
void addCost (EventTypeMapping *, const char *)
 
void addCost (EventTypeMapping *, FixString &)
 
void addCost (ProfileCostArray *item)
 
void addCost (int index, SubCost value)
 
virtual void clear ()
 
virtual QString costString (EventTypeSet *)
 
ProfileCostArray diff (ProfileCostArray *item)
 
virtual void invalidate ()
 
void maxCost (EventTypeMapping *, FixString &)
 
void maxCost (ProfileCostArray *item)
 
void maxCost (int index, SubCost value)
 
QString prettySubCost (EventType *)
 
QString prettySubCostPerCall (EventType *t, uint64 calls)
 
void reserve (int)
 
void set (EventTypeMapping *, const char *)
 
void set (EventTypeMapping *, FixString &)
 
SubCost subCost (EventType *)
 
- Public Member Functions inherited from CostItem
 CostItem (ProfileContext *)
 
virtual ~CostItem ()
 
ProfileContext * context () const
 
CostItem * dependant ()
 
virtual QString formattedName () const
 
QString fullName () const
 
virtual QString name () const
 
virtual TracePart * part ()
 
virtual const TracePart * part () const
 
virtual QString prettyName () const
 
void setContext (ProfileContext *context)
 
void setDependant (CostItem *d)
 
void setPosition (CostItem *p)
 
QString toString ()
 
ProfileContext::Type type () const
 

Additional Inherited Members

- Static Public Attributes inherited from ProfileCostArray
static const int InvalidIndex = -1
 
static const int MaxRealIndex = MaxRealIndexValue
 
- Protected Attributes inherited from CostItem
ProfileContext * _context
 
CostItem * _dep
 
bool _dirty
 
CostItem * _position
 

Detailed Description

This class holds profiling data of multiple tracefiles generated with cachegrind on one command.

Definition at line 1363 of file tracedata.h.

Constructor & Destructor Documentation

TraceData::TraceData ( Logger *  l = 0)

Definition at line 3067 of file tracedata.cpp.

TraceData::~TraceData ( )
virtual

Definition at line 3085 of file tracedata.cpp.

Member Function Documentation

bool TraceData::activateAll ( bool  active = true)

Definition at line 3255 of file tracedata.cpp.

bool TraceData::activatePart ( TracePart *  p,
bool  active 
)

Definition at line 3250 of file tracedata.cpp.

bool TraceData::activateParts ( const TracePartList &  l)

returns true if something changed.

These do NOT invalidate the dynamic costs on a activation change, i.e. all cost items depends on active parts. This has to be done by the caller when true is returned by calling invalidateDynamicCost().

Definition at line 3213 of file tracedata.cpp.

bool TraceData::activateParts ( TracePartList  l,
bool  active 
)

Definition at line 3232 of file tracedata.cpp.

QString TraceData::activePartRange ( )

Definition at line 3280 of file tracedata.cpp.

void TraceData::addPart ( TracePart *  part)

Definition at line 3260 of file tracedata.cpp.

ProfileCostArray* TraceData::callMax ( )
inline

Definition at line 1445 of file tracedata.h.

TraceClassMap& TraceData::classMap ( )
inline

Definition at line 1440 of file tracedata.h.

TraceClass * TraceData::cls ( const QString &  fnName,
QString &  shortName 
)

Definition at line 3371 of file tracedata.cpp.

QString TraceData::command ( ) const
inline

Definition at line 1448 of file tracedata.h.

virtual TraceData* TraceData::data ( )
inlinevirtual

Reimplemented from CostItem.

Definition at line 1369 of file tracedata.h.

virtual const TraceData* TraceData::data ( ) const
inlinevirtual

Reimplemented from CostItem.

Definition at line 1370 of file tracedata.h.

DynPool * TraceData::dynPool ( )

Definition at line 3110 of file tracedata.cpp.

EventTypeSet* TraceData::eventTypes ( )
inline

Definition at line 1407 of file tracedata.h.

TraceFile * TraceData::file ( const QString &  name)

Definition at line 3353 of file tracedata.cpp.

TraceFileMap& TraceData::fileMap ( )
inline

Definition at line 1439 of file tracedata.h.

FixPool * TraceData::fixPool ( )

Definition at line 3102 of file tracedata.cpp.

TraceFunction * TraceData::function ( const QString &  name,
TraceFile *  file,
TraceObject *  object 
)

Definition at line 3410 of file tracedata.cpp.

TraceFunctionMap::ConstIterator TraceData::functionBeginIterator ( ) const

Definition at line 3487 of file tracedata.cpp.

TraceFunctionCycle * TraceData::functionCycle ( TraceFunction *  f)

Definition at line 3660 of file tracedata.cpp.

const TraceFunctionCycleList& TraceData::functionCycles ( )
inline

Definition at line 1443 of file tracedata.h.

TraceFunctionMap::ConstIterator TraceData::functionEndIterator ( ) const

Definition at line 3492 of file tracedata.cpp.

TraceFunctionMap::Iterator TraceData::functionIterator ( TraceFunction *  f)

Definition at line 3474 of file tracedata.cpp.

TraceFunctionMap& TraceData::functionMap ( )
inline

Definition at line 1441 of file tracedata.h.

bool TraceData::inFunctionCycleUpdate ( )
inline

Definition at line 1468 of file tracedata.h.

void TraceData::invalidateDynamicCost ( )

Definition at line 3306 of file tracedata.cpp.

int TraceData::load ( QStringList  files)

Loads profile data files.

Load a list of files.

If a single file is given, it is assumed to be a prefix.

This adjusts the EventTypeSet according to given cost types. Returns the number of parts loaded

If only one file is given, it is assumed to be a prefix, and all existing files with that prefix are loaded.

Returns 0 if nothing found to load

Definition at line 3130 of file tracedata.cpp.

int TraceData::load ( QString  file)

Definition at line 3171 of file tracedata.cpp.

int TraceData::load ( QIODevice *  file,
const QString &  filename 
)

Definition at line 3176 of file tracedata.cpp.

int TraceData::maxPartNumber ( ) const
inline

Definition at line 1453 of file tracedata.h.

int TraceData::maxThreadID ( ) const
inline

Definition at line 1451 of file tracedata.h.

TraceObject * TraceData::object ( const QString &  name)

Definition at line 3336 of file tracedata.cpp.

TraceObjectMap& TraceData::objectMap ( )
inline

Definition at line 1438 of file tracedata.h.

TracePartList TraceData::parts ( ) const
inline

Definition at line 1397 of file tracedata.h.

TracePart * TraceData::partWithName ( const QString &  name)

Definition at line 3272 of file tracedata.cpp.

void TraceData::resetSourceDirs ( )

Definition at line 3498 of file tracedata.cpp.

ProfileCostArray * TraceData::search ( ProfileContext::Type  t,
QString  name,
EventType *  ct = 0,
ProfileCostArray *  parent = 0 
)

Search for item with given name and highest subcost of given cost type.

For some items, they will only be found if the parent cost is given: Instr, Line, Call => need parent of type Function For Function, a parent of type Obj/File/Class can be given, but is not needed.

Definition at line 3522 of file tracedata.cpp.

void TraceData::setCommand ( const QString &  command)
inline

Definition at line 1447 of file tracedata.h.

void TraceData::setMaxPartNumber ( int  n)
inline

Definition at line 1452 of file tracedata.h.

void TraceData::setMaxThreadID ( int  tid)
inline

Definition at line 1450 of file tracedata.h.

QString TraceData::shortTraceName ( ) const

Definition at line 3093 of file tracedata.cpp.

ProfileCostArray* TraceData::totals ( )
inline

Definition at line 1449 of file tracedata.h.

QString TraceData::traceName ( ) const
inline

Definition at line 1401 of file tracedata.h.

void TraceData::update ( )
virtual

Updates cost attributes.

This has to be called by subclasses that access cost attributes directly

Reimplemented from ProfileCostArray.

Definition at line 3506 of file tracedata.cpp.

void TraceData::updateClassCycles ( )

Definition at line 3736 of file tracedata.cpp.

void TraceData::updateFileCycles ( )

Definition at line 3741 of file tracedata.cpp.

void TraceData::updateFunctionCycles ( )

Definition at line 3675 of file tracedata.cpp.

void TraceData::updateObjectCycles ( )

Definition at line 3731 of file tracedata.cpp.


The documentation for this class was generated from the following files:
  • tracedata.h
  • tracedata.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:51 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
  • 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