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

MonThreadMethod Class Reference

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

#include <monThreadMethod.h>

Inheritance diagram for MonThreadMethod::

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

Public Methods

 MonThreadMethod ()
 Default constructor.

virtual ~MonThreadMethod ()
 Destructor.

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

const MonThreadMethodKeygetKey (MonThreadMethodKey &key)
 Retrieves object's key. More...

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


Public Attributes

Threadthread
 parent thread.

Methodmethod
 parent method.

List< MonThreadTrace, LI2threadTraces
 associated MonThreadTraces.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

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


Member Function Documentation

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

Updates monitor statistics.

Also updates monitor statistics of corresponding method.

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

Reimplemented from MonStatData.

Definition at line 44 of file monThreadMethod.cpp.

Referenced by MonThreadTrace::addMonStat().

virtual eClassIdent MonThreadMethod::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 148 of file monThreadMethod.h.

const MonThreadMethodKey & MonThreadMethod::getKey MonThreadMethodKey   key
 

Retrieves object's key.

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

Definition at line 61 of file monThreadMethod.cpp.

int MonThreadMethod::hashKey const MonThreadMethodKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 74 of file monThreadMethod.cpp.

int MonThreadMethod::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 monThreadMethod.cpp.

Referenced by MonThreadTrace::isActive().

virtual int MonThreadMethod::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 monThreadMethod.h.

int MonThreadMethod::operator== const MonThreadMethodKey   key
 

Compares object with given key.

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

Definition at line 69 of file monThreadMethod.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