#include <allocObjectTrace.h>
Inheritance diagram for AllocObjectTrace::
Public Methods | |
AllocObjectTrace () | |
Default constructor. | |
virtual | ~AllocObjectTrace () |
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... | |
const AllocObjectTraceKey & | getKey (AllocObjectTraceKey &key) |
Retrieves object's key. More... | |
int | operator== (const AllocObjectTraceKey &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 AllocObjectTraceKey &key) |
Hash function. More... | |
Public Attributes | |
AllocObjectMethod * | objectMethod |
parent AllocObjectMethod. | |
AllocTrace * | trace |
parent AllocTrace. | |
List< AllocThreadObjectTrace, LI2 > | threadObjectTraces |
associated AllocThreadObjectTraces. | |
Static Private Attributes | |
Allocator | _allocator |
allocator. |
This class defines a relation between traces (specify where an object was allocated) and objects-methods (another relation described in AllocObjectMethod class description). It would be nice to have information where an object of given type was allocated - in which method (and to have a stack of called methods for each object where the last one in this stack made an allocation of the object).
Remember: a method allocates an object; this method can be called from various methods; these call sequences of methods divide objects of the same type to groups, two objects of the same type are equivalent if they're in the same group, so they're allocated using the same call sequence. Trace is one of these call sequences. In this way we gained the highest granularity of data.
Definition at line 66 of file allocObjectTrace.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 AllocAbstractStatThreadObject. Definition at line 45 of file allocObjectTrace.cpp. Referenced by AllocThreadObjectTrace::addMemoryStat().
|
|
Clearing of flag. This method sets the modification flag to zero. Reimplemented from AllocAbstractStatThreadObject. Definition at line 67 of file allocObjectTrace.cpp. Referenced by AllocThreadObjectTrace::clearFlag().
|
|
Class identification.
Reimplemented from IdObject. Definition at line 176 of file allocObjectTrace.h. |
|
Retrieves object's key.
Definition at line 79 of file allocObjectTrace.cpp. Referenced by AllocThreadObjectTrace::getKey().
|
|
Hash function.
Definition at line 91 of file allocObjectTrace.cpp. |
|
State of object. Once an object is unactive, it remains unactive forever.
Reimplemented from IdObject. Definition at line 96 of file allocObjectTrace.cpp. Referenced by AllocThreadObjectTrace::isActive().
|
|
Indication that object has changed its data.
Reimplemented from IdObject. Definition at line 191 of file allocObjectTrace.h. |
|
Compares object with given key.
Definition at line 86 of file allocObjectTrace.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 from AllocAbstractStatThreadObject. Definition at line 56 of file allocObjectTrace.cpp. Referenced by AllocThreadObjectTrace::subMemoryStat().
|