• 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
TraceFunctionSource Class Reference

#include <tracedata.h>

Inheritance diagram for TraceFunctionSource:
Inheritance graph
[legend]

Public Member Functions

 TraceFunctionSource (TraceFunction *, TraceFile *)
 
virtual ~TraceFunctionSource ()
 
TraceFile * file () const
 
uint firstLineno ()
 
TraceFunction * function () const
 
void invalidateDynamicCost ()
 
uint lastLineno ()
 
TraceLine * line (uint lineno, bool createNew=true)
 
TraceLineMap * lineMap ()
 
virtual QString name () const
 
TraceLineRegion * region (uint from, uint to, QString name, bool createNew=true)
 
virtual void update ()
 
- 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, int 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
 
virtual TraceData * data ()
 
virtual const TraceData * data () const
 
CostItem * dependant ()
 
virtual QString formattedName () const
 
QString fullName () 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

A container helper class for TraceFunction for source lines where a function is implemented in.

With inlining, lines of the same function can come from different source files. An instance of this class holds all lines of one source file for a function in a map

Definition at line 1029 of file tracedata.h.

Constructor & Destructor Documentation

TraceFunctionSource::TraceFunctionSource ( TraceFunction *  function,
TraceFile *  file 
)

Definition at line 1506 of file tracedata.cpp.

TraceFunctionSource::~TraceFunctionSource ( )
virtual

Definition at line 1521 of file tracedata.cpp.

Member Function Documentation

TraceFile* TraceFunctionSource::file ( ) const
inline

Definition at line 1040 of file tracedata.h.

uint TraceFunctionSource::firstLineno ( )

Definition at line 1532 of file tracedata.cpp.

TraceFunction* TraceFunctionSource::function ( ) const
inline

Definition at line 1041 of file tracedata.h.

void TraceFunctionSource::invalidateDynamicCost ( )

Definition at line 1605 of file tracedata.cpp.

uint TraceFunctionSource::lastLineno ( )

Definition at line 1542 of file tracedata.cpp.

TraceLine * TraceFunctionSource::line ( uint  lineno,
bool  createNew = true 
)

Definition at line 1554 of file tracedata.cpp.

TraceLineMap * TraceFunctionSource::lineMap ( )

Definition at line 1618 of file tracedata.cpp.

QString TraceFunctionSource::name ( ) const
virtual

Returns dynamic name info (without type)

Reimplemented from CostItem.

Definition at line 1527 of file tracedata.cpp.

TraceLineRegion* TraceFunctionSource::region ( uint  from,
uint  to,
QString  name,
bool  createNew = true 
)
void TraceFunctionSource::update ( )
virtual

Updates cost attributes.

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

Reimplemented from ProfileCostArray.

Definition at line 1588 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-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