#include <allocStatData.h>
Inheritance diagram for AllocStatData::
Public Methods | |
AllocStatData () | |
Default constructor. More... | |
virtual | ~AllocStatData () |
Destructor. | |
virtual void | addMemoryStat (jint size) |
Addition of the object's size to statistics. More... | |
virtual void | subMemoryStat (jint size) |
Subtraction of the object's size from statistics. More... | |
virtual Buffer & | dataToBin (Buffer &b) |
Convert data to binary. More... | |
Static Public Methods | |
AllocStatData & | copy (AllocStatData &dest, const AllocStatData &src) |
Copies statistic data. | |
Public Attributes | |
jlong | allocNumInstancesLive |
number of live instances. | |
jlong | allocNumInstancesTotal |
Total number of instances. More... | |
jlong | allocSizeInstancesLive |
amount of space used by live instances. | |
jlong | allocSizeInstancesTotal |
Total amount of space used by instances. More... |
This class is a base class for other classes used in memory profiling; it consists of statistic information needed for this type of profiling.
Definition at line 49 of file allocStatData.h.
|
Default constructor. It only initializes public member variables. Definition at line 76 of file allocStatData.h. |
|
Addition of the object's size to statistics. This method adds size of object to the statistic data. It changes number of live/total instances, too.
Reimplemented in AllocAbstractStatThreadObject, AllocObjectMethod, AllocObjectTrace, AllocThreadObject, AllocThreadObjectMethod, and AllocThreadObjectTrace. Definition at line 37 of file allocStatData.cpp. Referenced by AllocThreadObjectTrace::addMemoryStat(), AllocThreadObjectMethod::addMemoryStat(), AllocThreadObject::addMemoryStat(), AllocObjectTrace::addMemoryStat(), AllocObjectMethod::addMemoryStat(), and AllocAbstractStatThreadObject::addMemoryStat().
|
|
Convert data to binary. This method converts statistic data to binary format in which it is sent thru communication interface to client.
Reimplemented from DataBinaryFormat. Definition at line 56 of file allocStatData.cpp. |
|
Subtraction of the object's size from statistics. This method subtracts size of object from the statistic data. It changes number of live instances, too.
Reimplemented in AllocAbstractStatThreadObject, AllocObjectMethod, AllocObjectTrace, AllocThreadObject, AllocThreadObjectMethod, and AllocThreadObjectTrace. Definition at line 48 of file allocStatData.cpp. Referenced by AllocThreadObjectTrace::subMemoryStat(), AllocThreadObjectMethod::subMemoryStat(), AllocThreadObject::subMemoryStat(), AllocObjectTrace::subMemoryStat(), AllocObjectMethod::subMemoryStat(), and AllocAbstractStatThreadObject::subMemoryStat().
|
|
Total number of instances. It means number of live and destroyed instances together. Definition at line 60 of file allocStatData.h. Referenced by copy().
|
|
Total amount of space used by instances. It means amount of space of live and destroyed instances together. Definition at line 69 of file allocStatData.h. Referenced by copy().
|