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

AllocStatData Class Reference

Statistic data for memory profiling. More...

#include <allocStatData.h>

Inheritance diagram for AllocStatData::

DataBinaryFormat StatDataModification AllocAbstractStatThreadObject AllocThreadMethod AllocThreadTrace AllocTrace Method Thread AllocObject AllocObjectMethod AllocObjectTrace AllocThreadObject AllocThreadObjectMethod AllocThreadObjectTrace List of all members.

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


Detailed Description

Statistic data for memory profiling.

This class is a base class for other classes used in memory profiling; it consists of statistic information needed for this type of profiling.

Author:
Marek Przeczek

Definition at line 49 of file allocStatData.h.


Constructor & Destructor Documentation

AllocStatData::AllocStatData   [inline]
 

Default constructor.

It only initializes public member variables.

Definition at line 76 of file allocStatData.h.


Member Function Documentation

void AllocStatData::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 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().

Buffer & AllocStatData::dataToBin Buffer   b [virtual]
 

Convert data to binary.

This method converts statistic data to binary format in which it is sent thru communication interface to client.

Parameters:
b  buffer where to append data
Returns:
reference to same Buffer object as argument 'b'

Reimplemented from DataBinaryFormat.

Definition at line 56 of file allocStatData.cpp.

void AllocStatData::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 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().


Member Data Documentation

jlong AllocStatData::allocNumInstancesTotal
 

Total number of instances.

It means number of live and destroyed instances together.

Definition at line 60 of file allocStatData.h.

Referenced by copy().

jlong AllocStatData::allocSizeInstancesTotal
 

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


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