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

MonStatData Class Reference

Statistics data for monitor profiling. More...

#include <monStatData.h>

Inheritance diagram for MonStatData::

DataBinaryFormat StatDataModification Method MonThreadMethod MonThreadTrace MonTrace List of all members.

Public Methods

 MonStatData ()
 Default constructor. More...

virtual ~MonStatData ()
 Destructor.

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

virtual BufferdataToBin (Buffer &b)
 Converts statistics data to a binary format used for communication with client. More...


Static Public Methods

MonStatData & copy (MonStatData &dest, const MonStatData &src)
 Copies statistic data.


Public Attributes

jlong time
 total wait time.

jlong hits
 number of waits.

int wait
 Helper flag. More...


Detailed Description

Statistics data for monitor profiling.

This class is used as a base class for other classes to hold statistics information about time spent by waiting on a monitor.

See also:
Method, MonTrace, Thread, MonThreadMethod, MonThreadTrace
Author:
Petr Luner

Definition at line 52 of file monStatData.h.


Constructor & Destructor Documentation

MonStatData::MonStatData   [inline]
 

Default constructor.

Performs statistics initialization.

Definition at line 73 of file monStatData.h.


Member Function Documentation

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

Updates statistics.

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

Reimplemented in MonThreadMethod, MonThreadTrace, and MonTrace.

Definition at line 37 of file monStatData.cpp.

Referenced by MonTrace::addMonStat(), MonThreadTrace::addMonStat(), MonThreadMethod::addMonStat(), Prof::event_monitorContendedEntered(), and Prof::event_monitorWaited().

Buffer & MonStatData::dataToBin Buffer   b [virtual]
 

Converts statistics data to a binary format used for communication with client.

Parameters:
b  buffer where to append data
Returns:
reference to same Buffer object as argument 'b'

Reimplemented from DataBinaryFormat.

Definition at line 45 of file monStatData.cpp.


Member Data Documentation

int MonStatData::wait
 

Helper flag.

Indicates whether blocking occures in wait method. It is neccessary to count hits correctly.

Definition at line 66 of file monStatData.h.

Referenced by Prof::event_monitorContendedEntered(), and Prof::event_monitorWaited().


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