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

AllocAbstractStatThreadObject Class Reference

An abstract statistic class. More...

#include <allocAbstractStatThreadObject.h>

Inheritance diagram for AllocAbstractStatThreadObject::

AllocStatData DataBinaryFormat StatDataModification AllocObject AllocObjectMethod AllocObjectTrace AllocThreadObject AllocThreadObjectMethod AllocThreadObjectTrace List of all members.

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.


Detailed Description

An abstract statistic class.

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).

See also:
AllocThreadObject, AllocThreadObjectMethod, AllocThreadObjectTrace
Author:
Marek Przeczek

Definition at line 52 of file allocAbstractStatThreadObject.h.


Member Function Documentation

void AllocAbstractStatThreadObject::addMemoryStat jint    size [virtual]
 

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.

Parameters:
size  size of object (in number of bytes)
See also:
subMemoryStat()

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().

virtual void AllocAbstractStatThreadObject::clearFlag   [inline, virtual]
 

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().

int AllocAbstractStatThreadObject::modified   [inline]
 

Check if the structure is modified or not.

Returns:
1 (true); 0 (false)

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().

void AllocAbstractStatThreadObject::subMemoryStat jint    size [virtual]
 

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.

Parameters:
size  size of object (in number of bytes)
See also:
addMemoryStat()

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().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:27 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001