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

CpuThreadTrace Class Reference

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

#include <cpuThreadTrace.h>

Inheritance diagram for CpuThreadTrace::

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

Public Methods

 CpuThreadTrace ()
 Default constructor.

virtual ~CpuThreadTrace ()
 Destructor.

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

const CpuThreadTraceKeygetKey (CpuThreadTraceKey &key)
 Retrieves object's key. More...

int operator== (const CpuThreadTraceKey &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 CpuThreadTraceKey &key)
 Hash function. More...


Public Attributes

CpuThreadMethodthreadMethod
 parent CpuThreadMethod.

CpuTracetrace
 parent CpuTrace.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Crossroad of threads and traces for CPU profiling.

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

Author:
Petr Luner

Definition at line 53 of file cpuThreadTrace.h.


Member Function Documentation

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

Updates CPU statistics.

Also updates CPU statistics of corresponding CpuTrace and CpuThreadMethod.

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

Reimplemented from CpuStatData.

Definition at line 44 of file cpuThreadTrace.cpp.

virtual eClassIdent CpuThreadTrace::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 144 of file cpuThreadTrace.h.

const CpuThreadTraceKey & CpuThreadTrace::getKey CpuThreadTraceKey   key
 

Retrieves object's key.

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

Definition at line 56 of file cpuThreadTrace.cpp.

int CpuThreadTrace::hashKey const CpuThreadTraceKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 68 of file cpuThreadTrace.cpp.

int CpuThreadTrace::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 73 of file cpuThreadTrace.cpp.

virtual int CpuThreadTrace::isChanged   [inline, virtual]
 

Indication that object has changed its data.

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

Reimplemented from IdObject.

Definition at line 159 of file cpuThreadTrace.h.

int CpuThreadTrace::operator== const CpuThreadTraceKey   key
 

Compares object with given key.

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

Definition at line 63 of file cpuThreadTrace.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