Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

CpuThreadMethod Class Reference

Crossroad of threads and methods for CPU profiling. More...

#include <cpuThreadMethod.h>

Inheritance diagram for CpuThreadMethod::

LI1 LI2 LI3 IdObject CpuStatData ListItem ListItem ListItem DataBinaryFormat StatDataModification RefCount RefCount RefCount List of all members.

Public Methods

 CpuThreadMethod ()
 Default constructor.

virtual ~CpuThreadMethod ()
 Destructor.

virtual void addCpuStat (jlong addHits, jlong addPureTime)
 Updates CPU statistics. More...

const CpuThreadMethodKeygetKey (CpuThreadMethodKey &key)
 Retrieves object's key. More...

int operator== (const CpuThreadMethodKey &key)
 Compares object with given key. More...

void deactivate ()
 Performs deactivation.

void * operator new (size_t sz)
 Overloaded new() operator.

void operator delete (void *unit)
 Overloaded delete() operator.

virtual eClassIdent getClassIdent ()
 Class identification. More...

virtual int isActive ()
 State of object. More...

virtual int isChanged ()
 Indication that object has changed its data. More...

virtual void setUnchanged ()
 Set the structure is unchanged although it may not be.


Static Public Methods

int hashKey (const CpuThreadMethodKey &key)
 Hash function. More...


Public Attributes

Threadthread
 parent thread.

Methodmethod
 parent method.

List< CpuThreadTrace, LI2threadTraces
 associated CpuThreadTraces.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Crossroad of threads and methods for CPU profiling.

This class consists of statistic information about method while running in the thread. Same method can run in different threads. So it would be useful to have an information about each method in each thread.

Author:
Petr Luner

Definition at line 55 of file cpuThreadMethod.h.


Member Function Documentation

void CpuThreadMethod::addCpuStat jlong    addHits,
jlong    addPureTime
[virtual]
 

Updates CPU statistics.

Also updates CPU statistics of corresponding method.

Parameters:
addHits  number of hits to be added
addPureTime  pure time to be added

Reimplemented from CpuStatData.

Definition at line 44 of file cpuThreadMethod.cpp.

Referenced by CpuThreadTrace::addCpuStat().

virtual eClassIdent CpuThreadMethod::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 148 of file cpuThreadMethod.h.

const CpuThreadMethodKey & CpuThreadMethod::getKey CpuThreadMethodKey   key
 

Retrieves object's key.

Parameters:
key  where to store the key
Returns:
key
See also:
Hash

Definition at line 61 of file cpuThreadMethod.cpp.

int CpuThreadMethod::hashKey const CpuThreadMethodKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 74 of file cpuThreadMethod.cpp.

int CpuThreadMethod::isActive   [virtual]
 

State of object.

Once an object is unactive, it remains unactive forever.

Returns:
0 (not active); 1 (active)

Reimplemented from IdObject.

Definition at line 79 of file cpuThreadMethod.cpp.

Referenced by CpuThreadTrace::isActive().

virtual int CpuThreadMethod::isChanged   [inline, virtual]
 

Indication that object has changed its data.

Returns:
0 (no change); 1 (data changed)

Reimplemented from IdObject.

Definition at line 163 of file cpuThreadMethod.h.

int CpuThreadMethod::operator== const CpuThreadMethodKey   key
 

Compares object with given key.

Parameters:
key  key
Returns:
1 (true); 0 (false)
See also:
Hash

Definition at line 69 of file cpuThreadMethod.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:28 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001