#include <cpuStack.h>
Public Methods | |
| CpuStack () | |
| Default constructor. | |
| ~CpuStack () | |
| Destructor. | |
| void | push (JVMPI_CallFrame &callFrame, jlong entryTime) |
| Pushes method call on the stack. More... | |
| void | pop (jlong exitTime, jlong &totalTime, jlong &pureTime) |
| Bills the cost of a top method and pops it from the stack. More... | |
| int | getTopCallTrace (int maxFrames, JVMPI_CallFrame *frames) const |
| Gets top call trace. More... | |
Private Methods | |
| void | grow () |
| Grows the stack. | |
Private Attributes | |
| Frame * | stack |
| stack array. | |
| long | size |
| stack size. | |
| long | top |
| top stack index. | |
Essentially this class represents an image of a thread call stack and serves for recording method entry times and other information needed for computing of method total and pure time consumation. The events JVMPI_EVENT_METHOD_ENTRY and JVMPI_EVENT_METHOD_EXIT are used to update the stack in an obvious way.
Definition at line 52 of file cpuStack.h.
|
||||||||||||
|
Gets top call trace.
Definition at line 58 of file cpuStack.cpp. |
|
||||||||||||||||
|
Bills the cost of a top method and pops it from the stack.
Definition at line 51 of file cpuStack.cpp. |
|
||||||||||||
|
Pushes method call on the stack.
Definition at line 42 of file cpuStack.cpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001