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

MonThreadTrace Class Reference

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

#include <monThreadTrace.h>

Inheritance diagram for MonThreadTrace::

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

Public Methods

 MonThreadTrace ()
 Default constructor.

virtual ~MonThreadTrace ()
 Destructor.

virtual void addMonStat (jlong addHits, jlong addTime)
 Updates monitor statistics. More...

const MonThreadTraceKeygetKey (MonThreadTraceKey &key)
 Retrieves object's key. More...

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


Public Attributes

MonThreadMethodthreadMethod
 parent MonThreadMethod.

MonTracetrace
 parent MonTrace.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Crossroad of threads and traces for monitor 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 monThreadTrace.h.


Member Function Documentation

void MonThreadTrace::addMonStat jlong    addHits,
jlong    addTime
[virtual]
 

Updates monitor statistics.

Also updates monitor statistics of corresponding MonTrace and MonThreadMethod.

Parameters:
addHits  number of hits to be added
addTime  wait time to be added

Reimplemented from MonStatData.

Definition at line 45 of file monThreadTrace.cpp.

virtual eClassIdent MonThreadTrace::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 144 of file monThreadTrace.h.

const MonThreadTraceKey & MonThreadTrace::getKey MonThreadTraceKey   key
 

Retrieves object's key.

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

Definition at line 57 of file monThreadTrace.cpp.

int MonThreadTrace::hashKey const MonThreadTraceKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 70 of file monThreadTrace.cpp.

int MonThreadTrace::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 75 of file monThreadTrace.cpp.

virtual int MonThreadTrace::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 monThreadTrace.h.

int MonThreadTrace::operator== const MonThreadTraceKey   key
 

Compares object with given key.

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

Definition at line 65 of file monThreadTrace.cpp.


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