kcachegrind
#include <coverage.h>
Public Types | |
enum | CoverageMode { Caller, Called } |
Public Member Functions | |
Coverage () | |
double & | callCount () |
double | firstPercentage () |
TraceFunction * | function () |
double | inclusive () |
double * | inclusiveHistogram () |
int | inclusiveMedian () |
void | init () |
bool | inRecursion () |
bool | isActive () |
int | maxDistance () |
int | minDistance () |
virtual int | rtti () |
double | self () |
double * | selfHistogram () |
int | selfMedian () |
void | setActive (bool a) |
void | setCallCount (float cc) |
void | setInclusive (float p) |
void | setInRecursion (bool r) |
void | setSelf (float p) |
Public Member Functions inherited from TraceAssociation | |
TraceAssociation () | |
virtual | ~TraceAssociation () |
TraceFunction * | function () |
void | invalidate () |
bool | isAssociated () |
bool | isValid () |
bool | setFunction (TraceFunction *) |
Static Public Member Functions | |
static TraceFunctionList | coverage (TraceFunction *f, CoverageMode m, EventType *ct) |
Static Public Member Functions inherited from TraceAssociation | |
static void | clear (TraceData *data, int rtti) |
static void | invalidate (TraceData *data, int rtti) |
Static Public Attributes | |
static const int | maxHistogramDepth = maxHistogramDepthValue |
static const int | Rtti = 1 |
Additional Inherited Members | |
Protected Attributes inherited from TraceAssociation | |
TraceFunction * | _function |
bool | _valid |
Detailed Description
Coverage of a function.
When analysis is done, every function involved will have a pointer to an object of this class.
This function also holds the main routine for coverage analysis, Coverage::coverage(), as static method.
Definition at line 36 of file coverage.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Caller | |
Called |
Definition at line 40 of file coverage.h.
Constructor & Destructor Documentation
Coverage::Coverage | ( | ) |
Definition at line 32 of file coverage.cpp.
Member Function Documentation
|
inline |
Definition at line 57 of file coverage.h.
|
static |
Calculate coverage of all functions based on function f.
If mode is Called, the coverage of functions called by f is calculated, otherwise that of functions calling f. SubCost type ct is used for the analysis. Self values are undefined for Caller mode.
Returns list of functions covered. Coverage degree of returned functions can be get with function->coverage()->percentage()
Definition at line 81 of file coverage.cpp.
|
inline |
Definition at line 56 of file coverage.h.
|
inline |
Definition at line 53 of file coverage.h.
|
inline |
Definition at line 55 of file coverage.h.
|
inline |
Definition at line 63 of file coverage.h.
int Coverage::inclusiveMedian | ( | ) |
Definition at line 55 of file coverage.cpp.
void Coverage::init | ( | ) |
Definition at line 36 of file coverage.cpp.
|
inline |
Definition at line 65 of file coverage.h.
|
inline |
Definition at line 64 of file coverage.h.
|
inline |
Definition at line 59 of file coverage.h.
|
inline |
Definition at line 58 of file coverage.h.
|
inlinevirtual |
Reimplemented from TraceAssociation.
Definition at line 50 of file coverage.h.
|
inline |
Definition at line 54 of file coverage.h.
|
inline |
Definition at line 62 of file coverage.h.
int Coverage::selfMedian | ( | ) |
Definition at line 68 of file coverage.cpp.
|
inline |
Definition at line 70 of file coverage.h.
|
inline |
Definition at line 69 of file coverage.h.
|
inline |
Definition at line 68 of file coverage.h.
|
inline |
Definition at line 71 of file coverage.h.
|
inline |
Definition at line 67 of file coverage.h.
Member Data Documentation
|
static |
Definition at line 44 of file coverage.h.
|
static |
Definition at line 46 of file coverage.h.
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.