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

CpuTrace Class Reference

Trace for CPU profiling. More...

#include <cpuTrace.h>

Inheritance diagram for CpuTrace::

LI1 LI2 IdObject Trace CpuStatData ListItem ListItem InfoBinaryFormat DataBinaryFormat StatDataModification RefCount RefCount List of all members.

Public Methods

 CpuTrace ()
 Default constructor.

virtual ~CpuTrace ()
 Destructor.

virtual void addCpuStat (jlong addHits, jlong addPureTime)
 Updates CPU statistics. 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.


Public Attributes

Methodmethod
 parent method.

List< CpuThreadTrace, LI3threadTraces
 associated CpuThreadTraces.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Trace for CPU profiling.

We decided to use different traces for memory and for cpu profiling, because it should be an option to have different granularity of traces (their trace frame stack depth) for each type of profiling.

Author:
Petr Luner

Definition at line 55 of file cpuTrace.h.


Member Function Documentation

void CpuTrace::addCpuStat jlong    addHits,
jlong    addPureTime
[virtual]
 

Updates CPU statistics.

Also updates CPU statistics of corresponding method.

Parameters:
addHits  number of hits to be added
addPureTime  pure time to be added

Reimplemented from CpuStatData.

Definition at line 43 of file cpuTrace.cpp.

Referenced by CpuThreadTrace::addCpuStat().

virtual eClassIdent CpuTrace::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 115 of file cpuTrace.h.

int CpuTrace::isActive   [virtual]
 

State of object.

Once an object is unactive, it remains unactive forever.

Returns:
0 (not active); 1 (active)

Reimplemented from IdObject.

Definition at line 54 of file cpuTrace.cpp.

Referenced by CpuThreadTrace::isActive().

virtual int CpuTrace::isChanged   [inline, virtual]
 

Indication that object has changed its data.

Returns:
0 (no change); 1 (data changed)

Reimplemented from IdObject.

Definition at line 130 of file cpuTrace.h.


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