#include <allocAbstractStatThreadObject.h>
Inheritance diagram for AllocAbstractStatThreadObject::
Public Methods | |
AllocAbstractStatThreadObject () | |
Default constructor. | |
virtual | ~AllocAbstractStatThreadObject () |
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 void | clearFlag () |
Clearing of flag. More... | |
int | modified () |
Check if the structure is modified or not. More... | |
Private Attributes | |
int | _flagModified |
indication of modification. |
This class is an ancestor of AllocThreadObject, AllocThreadObjectMethod and AllocThreadObjectTrace classes. It is used for optional depth of statistics. Using this inheritance we can make three levels of statistics: objects only, objects + methods (more detailed, resolution to methods) and objects + methods + traces (most detailed, resolution to method traces).
Definition at line 52 of file allocAbstractStatThreadObject.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 from AllocStatData. Reimplemented in AllocObjectMethod, AllocObjectTrace, AllocThreadObject, AllocThreadObjectMethod, and AllocThreadObjectTrace. Definition at line 37 of file allocAbstractStatThreadObject.cpp. Referenced by AllocThreadObjectTrace::addMemoryStat(), AllocThreadObjectMethod::addMemoryStat(), AllocThreadObject::addMemoryStat(), AllocObjectTrace::addMemoryStat(), AllocObjectMethod::addMemoryStat(), and Prof::event_objectAlloc().
|
|
Clearing of flag. This method sets the modification flag to zero. Reimplemented in AllocObjectMethod, AllocObjectTrace, AllocThreadObject, AllocThreadObjectMethod, and AllocThreadObjectTrace. Definition at line 92 of file allocAbstractStatThreadObject.h. Referenced by AllocThreadObjectTrace::clearFlag(), AllocThreadObjectMethod::clearFlag(), AllocThreadObject::clearFlag(), AllocObjectTrace::clearFlag(), and AllocObjectMethod::clearFlag().
|
|
Check if the structure is modified or not.
Definition at line 99 of file allocAbstractStatThreadObject.h. Referenced by AllocThreadObjectTrace::addMemoryStat(), AllocThreadObjectMethod::addMemoryStat(), AllocThreadObject::addMemoryStat(), AllocObjectTrace::addMemoryStat(), AllocObjectMethod::addMemoryStat(), AllocThreadObjectTrace::subMemoryStat(), AllocThreadObjectMethod::subMemoryStat(), AllocThreadObject::subMemoryStat(), AllocObjectTrace::subMemoryStat(), and AllocObjectMethod::subMemoryStat().
|
|
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 from AllocStatData. Reimplemented in AllocObjectMethod, AllocObjectTrace, AllocThreadObject, AllocThreadObjectMethod, and AllocThreadObjectTrace. Definition at line 43 of file allocAbstractStatThreadObject.cpp. Referenced by AllocThreadObjectTrace::subMemoryStat(), AllocThreadObjectMethod::subMemoryStat(), AllocThreadObject::subMemoryStat(), AllocObjectTrace::subMemoryStat(), and AllocObjectMethod::subMemoryStat().
|