#include <monStatData.h>
Inheritance diagram for MonStatData::

Public Methods | |
| MonStatData () | |
| Default constructor. More... | |
| virtual | ~MonStatData () |
| Destructor. | |
| virtual void | addMonStat (jlong addHits, jlong addTime) |
| Updates statistics. More... | |
| virtual Buffer & | dataToBin (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... | |
This class is used as a base class for other classes to hold statistics information about time spent by waiting on a monitor.
Definition at line 52 of file monStatData.h.
|
|
Default constructor. Performs statistics initialization. Definition at line 73 of file monStatData.h. |
|
||||||||||||
|
Updates statistics.
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().
|
|
|
Converts statistics data to a binary format used for communication with client.
Reimplemented from DataBinaryFormat. Definition at line 45 of file monStatData.cpp. |
|
|
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().
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001