Main Page   Compound List   File List   Compound Members   File Members  

KMtraceCall Class Reference

The model of a function/method call. More...

#include <KMtraceCall.hh>

List of all members.

Public Methods

 KMtraceCall ()
 KMtraceCall (QString address, QString module, int line, QString function, QString offset)
QString getAddress ()
QString getModule ()
int getLine ()
QString getFunction ()
QString getOffset ()

Private Attributes

QString m_address
QString m_module
int m_line
QString m_function
QString m_offset


Detailed Description

The model of a function/method call.

This class represends a function/method call in a stack trace. This class is closely related to the class KMtraceLeak as a memory leak consists of a stack trace (class KMtraceCallStack).

Author:
Andreas Baumann <andreas_baumann@users.sourceforge.net>
See also:
KMtraceModel, KMtraceLeak, KMtraceCallStack
Version:


Constructor & Destructor Documentation

KMtraceCall::KMtraceCall  
 

KMtraceCall::KMtraceCall QString    address,
QString    module,
int    line,
QString    function,
QString    offset
 


Member Function Documentation

QString KMtraceCall::getAddress  
 

Get the memory address of the function call.

Returns:
the memory address in the format "0xXXXXXXXX"

QString KMtraceCall::getFunction  
 

Get the name of the function being called. This can be the function/method name as used in the source code followed optionally by an offset "+0xXX" (see getOffset ).

Returns:
the name of the function being called

int KMtraceCall::getLine  
 

Get the line where the function starts. This is >0 if getModule returns the name of a C/C++ source code file or 0 in case the function is part of library.

Returns:
the line of the module of the function or 0 in case case of a library

QString KMtraceCall::getModule  
 

Get the name of the module containing the function. This is normally the name of a C/C++ module (in case the function belongs to code compiled with the gcc -g option). It can also be the name of a library in case of library function, e.g libc.so.6. If you ommit the -g gcc option the name of the module results in the name of the binary being inspected.

Returns:
the name of a source file, binary or a shared library which contains the function

QString KMtraceCall::getOffset  
 

Get the offset into the function. This can happend for inlined code or in code within libraries.

Returns:
an offset of the form "0xXX"


Member Data Documentation

QString KMtraceCall::m_address [private]
 

QString KMtraceCall::m_function [private]
 

int KMtraceCall::m_line [private]
 

QString KMtraceCall::m_module [private]
 

QString KMtraceCall::m_offset [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 3 11:42:31 2003 for kmtraceviewer by doxygen1.3-rc1