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

AllocInstance Class Reference

Instance. More...

#include <allocInstance.h>

Inheritance diagram for AllocInstance::

LI1 LI2 ListItem ListItem RefCount RefCount List of all members.

Public Methods

 AllocInstance ()
 Default constructor.

virtual ~AllocInstance ()
 Destructor.

const jobjectID & getKey (jobjectID &key)
 Retrieves object's key. More...

int operator== (const jobjectID &key)
 Compares object with given key. More...

void * operator new (size_t sz)
 Overloaded new() operator.

void operator delete (void *unit)
 Overloaded delete() operator.


Static Public Methods

int hashKey (const jobjectID &key)
 Hash function. More...


Public Attributes

jint size
 size in number of bytes.

jobjectID objId
 unique object ID.

AllocArenaarena
 arena of this instance.

AllocAbstractStatThreadObjectobjectMethodTraceThread
 Trace/Method/Object/Thread. More...


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Instance.

This class consists of data gained by receiving the JVMPI_EVENT_OBJECT_ALLOC event.

Note: 'objID' is unique till the corresponding Java object exists. When object is garbaged, this data is no more actual, so another object with the same 'objID' can be allocated.

See also:
AllocArena, AllocAbstractStatObject
Author:
Marek Przeczek, Petr Luner

Definition at line 54 of file allocInstance.h.


Member Function Documentation

const jobjectID& AllocInstance::getKey jobjectID &    key [inline]
 

Retrieves object's key.

Parameters:
key  where to store the key
Returns:
key
See also:
Hash

Definition at line 95 of file allocInstance.h.

int AllocInstance::hashKey const jobjectID &    key [inline, static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 114 of file allocInstance.h.

int AllocInstance::operator== const jobjectID &    key [inline]
 

Compares object with given key.

Parameters:
key  key
Returns:
1 (true); 0 (false)
See also:
Hash

Definition at line 106 of file allocInstance.h.


Member Data Documentation

AllocAbstractStatThreadObject* AllocInstance::objectMethodTraceThread
 

Trace/Method/Object/Thread.

The type of object depends on the optional depth of profiled information.

Definition at line 70 of file allocInstance.h.

Referenced by Prof::event_arenaDelete(), Prof::event_objectAlloc(), and Prof::event_objectFree().


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