Main Page Compound List File List Compound Members File Members
KMtraceModel Class Reference
The model of kmtraceviewer.
More...
#include <KMtraceModel.hh>
List of all members.
Detailed Description
The model of kmtraceviewer.
The model of the whole application. The model consists at the moment out of the output of the kmtrace program found in the kdesdk package and of the list of strings which are the suppressions which should be respected. This module could be easily replaced with a module reading a different format (like the one of valgrind, dmalloc, mpatrol, ...).
- Author:
- Andreas Baumann <andreas_baumann@users.sourceforge.net>
- See also:
- KMtraceLeak, KMtraceCall, KMtraceSuppression
- Version:
Constructor & Destructor Documentation
KMtraceModel::KMtraceModel |
( |
QString |
ktreefile |
) |
|
|
|
Create a new model based by reading the textfile 'ktreefile' and the file containing the suppressions (which is at the standard place as all KDE config files).
- Parameters:
-
ktreefile | the name of the file containing the output of the kmtrace program |
|
KMtraceModel::~KMtraceModel |
( |
|
) |
|
|
Member Function Documentation
void KMtraceModel::applySuppressions |
( |
|
) |
|
|
void KMtraceModel::changed |
( |
|
) |
[signal] |
|
|
The model changed because somebody suppressed or desuppressed a leak. |
QObjectList * KMtraceModel::getLeaksList |
( |
|
) |
|
|
|
Get the list of leaks (each entry is of type KMtraceLeak ).
- Returns:
- a list of leaks
|
int KMtraceModel::getNofMaximumAllocatedBlocks |
( |
|
) |
|
|
|
Get the maximum amount of memory blocks the program being inspected consumed during its total execution time.
- Returns:
- the maximum number of memory blocks allocated
|
int KMtraceModel::getNofMaximumAllocatedBytes |
( |
|
) |
|
|
|
Get the maximum amount of bytes the program being inspected consumed during its total execution time.
- Returns:
- the maximum number of memory blocks allocated
|
int KMtraceModel::getNofTotalAllocatedBlocks |
( |
|
) |
|
|
|
Get the total number of memory blocks the program being inspected allocated during its total execution time.
- Returns:
- the total number of memory blocks allocated
|
int KMtraceModel::getNofTotalAllocatedBytes |
( |
|
) |
|
|
|
Get the total number of bytes the program being inspected allocated during its total execution time.
- Returns:
- the total number of bytes allocated
|
int KMtraceModel::getNofTotalLeaksBlocks |
( |
|
) |
|
|
|
Get the number of memory blocks the program being inspected still had allocated at program termination.
- Returns:
- the number of leaked memory blocks
|
int KMtraceModel::getNofTotalLeaksBytes |
( |
|
) |
|
|
|
Get the number of bytes the program being inspected still had allocated at program termination.
- Returns:
- the number of leaked bytes
|
QObjectList * KMtraceModel::getSuppressionList |
( |
|
) |
|
|
|
Get the list of suppressions (each entry is of type KMtraceSuppression ).
- Returns:
- a list of suppressions
|
bool KMtraceModel::isInSuppressList |
( |
KMtraceLeak * |
leak |
) |
[private] |
|
void KMtraceModel::readExcludeFile |
( |
const char * |
name |
) |
[private] |
|
void KMtraceModel::readModel |
( |
|
) |
[private] |
|
void KMtraceModel::readSuppressions |
( |
|
) |
[private] |
|
void KMtraceModel::slotSuppressionChanged |
( |
KMtraceLeak * |
leak |
) |
[slot] |
|
void KMtraceModel::writeExcludeFile |
( |
const char * |
name |
) |
[private] |
|
void KMtraceModel::writeSuppressions |
( |
|
) |
[private] |
|
Member Data Documentation
QObjectList KMtraceModel::m_excludes [private]
|
|
QString KMtraceModel::m_ktreefile [private]
|
|
QObjectList KMtraceModel::m_leaksList [private]
|
|
int KMtraceModel::m_nofMaximumAllocatedBlocks [private]
|
|
int KMtraceModel::m_nofMaximumAllocatedBytes [private]
|
|
int KMtraceModel::m_nofTotalAllocatedBlocks [private]
|
|
int KMtraceModel::m_nofTotalAllocatedBytes [private]
|
|
int KMtraceModel::m_nofTotalLeaksBlocks [private]
|
|
int KMtraceModel::m_nofTotalLeaksBytes [private]
|
|
The documentation for this class was generated from the following files:
Generated on Fri Jan 3 11:42:32 2003 for kmtraceviewer by
1.3-rc1