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.

Public Slots

void slotSuppressionChanged (KMtraceLeak *leak)

Signals

void changed ()

Public Methods

 KMtraceModel (QString ktreefile)
 ~KMtraceModel ()
int getNofTotalAllocatedBlocks ()
int getNofTotalAllocatedBytes ()
int getNofMaximumAllocatedBlocks ()
int getNofMaximumAllocatedBytes ()
int getNofTotalLeaksBlocks ()
int getNofTotalLeaksBytes ()
QObjectList * getLeaksList ()
QObjectList * getSuppressionList ()
void addSuppression (KMtraceSuppression *suppression)
void deleteSuppression (KMtraceSuppression *suppression)
void applySuppressions ()

Private Methods

void readSuppressions ()
void readExcludeFile (const char *name)
void writeSuppressions ()
void writeExcludeFile (const char *name)
void readModel ()
bool isInSuppressList (KMtraceLeak *leak)

Private Attributes

QString m_ktreefile
int m_nofTotalAllocatedBlocks
int m_nofTotalAllocatedBytes
int m_nofMaximumAllocatedBlocks
int m_nofMaximumAllocatedBytes
int m_nofTotalLeaksBlocks
int m_nofTotalLeaksBytes
QObjectList m_leaksList
QObjectList m_excludes


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::addSuppression KMtraceSuppression   suppression
 

void KMtraceModel::applySuppressions  
 

void KMtraceModel::changed   [signal]
 

The model changed because somebody suppressed or desuppressed a leak.

void KMtraceModel::deleteSuppression KMtraceSuppression   suppression
 

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 doxygen1.3-rc1