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

Trace Class Reference

Trace. More...

#include <trace.h>

Inheritance diagram for Trace::

InfoBinaryFormat AllocTrace CpuTrace MonTrace List of all members.

Public Methods

 Trace ()
 Default constructor.

virtual ~Trace ()
 Destructor.

const TraceKeygetKey (TraceKey &key)
 Retrieves object's key. More...

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

virtual BufferinfoToBin (Buffer &b)
 Convert info to binary. More...


Static Public Methods

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


Public Attributes

jint numFrames
 number of frames in the trace.

TraceFrameframes
 frames that make up this trace.


Detailed Description

Trace.

This class consists of data aquired by calling a GetCallTrace() function of the JVMPI. It uses TraceFrame class (similar to JVMPI_CallFrame) storing a trace frame's data.

See also:
Method, TraceFrame
Author:
Marek Przeczek, Petr Luner

Definition at line 52 of file trace.h.


Member Function Documentation

const TraceKey & Trace::getKey TraceKey   key
 

Retrieves object's key.

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

Definition at line 59 of file trace.cpp.

Referenced by MonThreadTrace::getKey(), CpuThreadTrace::getKey(), AllocThreadTrace::getKey(), and AllocObjectTrace::getKey().

int Trace::hashKey const TraceKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 86 of file trace.cpp.

Buffer & Trace::infoToBin Buffer   b [virtual]
 

Convert info to binary.

This method converts information 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 InfoBinaryFormat.

Definition at line 45 of file trace.cpp.

int Trace::operator== const TraceKey   key
 

Compares object with given key.

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

Definition at line 73 of file trace.cpp.


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