#include <thread.h>
Inheritance diagram for Thread::
Public Methods | |
Thread () | |
Default constructor. | |
virtual | ~Thread () |
Destructor. | |
JNIEnv *const & | getKey (JNIEnv *&key) |
Retrieves object's key. More... | |
int | operator== (JNIEnv *const &key) |
Compares object with given key. More... | |
virtual Buffer & | infoToBin (Buffer &b) |
Convert info to binary. 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. | |
Static Public Methods | |
int | hashKey (JNIEnv *const &key) |
Hash function. More... | |
Public Attributes | |
String | threadName |
name of thread. | |
GroupThread * | group |
group of thread. | |
Thread * | parent |
parent of thread. | |
List< Thread, LI3 > | children |
children of thread. | |
jobjectID | threadId |
thread object ID. | |
JNIEnv * | threadEnvId |
JVMPI ID of the thread. | |
int | active |
active or not. | |
List< AllocThreadObject, LI1 > | allocThreadObjects |
associated AllocThreadObjects. | |
List< AllocThreadMethod, LI1 > | allocThreadMethods |
associated AllocThreadMethods. | |
List< CpuThreadMethod, LI2 > | cpuThreadMethods |
associated CpuThreadMethods. | |
List< MonThreadMethod, LI2 > | monThreadMethods |
associated MonThreadMethods. | |
CpuStack | stack |
CPU stack. | |
JVMPI_CallTrace | callTrace |
Call trace for general temporary usage. More... | |
Thread * | nextSuspended |
for CPU sampling purposes. | |
int | hasRun |
for CPU sampling purposes. | |
int | monitorEnter |
For monitor profiling purposes. More... | |
jobjectID | monitorEnterObject |
For monitor profiling purposes. More... | |
unsigned long | monitorEnterTime |
For monitor profiling purposes. More... | |
Static Private Attributes | |
Allocator | _allocator |
allocator. |
This class consists of data gained by receiving the JVMPI_EVENT_THREAD_START event. When the thread stops (JVMPI_EVENT_THREAD_END event received), data in this structure is no longer valid, so 'active' field will equal zero.
Definition at line 65 of file thread.h.
|
Class identification.
Reimplemented from IdObject. |
|
Retrieves object's key.
Definition at line 174 of file thread.h. Referenced by MonThreadMethod::getKey(), CpuThreadMethod::getKey(), AllocThreadObject::getKey(), and AllocThreadMethod::getKey().
|
|
Hash function.
Definition at line 193 of file thread.h. Referenced by MonThreadTrace::hashKey(), MonThreadMethod::hashKey(), CpuThreadTrace::hashKey(), CpuThreadMethod::hashKey(), AllocThreadTrace::hashKey(), AllocThreadObjectTrace::hashKey(), AllocThreadObjectMethod::hashKey(), AllocThreadObject::hashKey(), and AllocThreadMethod::hashKey().
|
|
Convert info to binary. This method converts information data to binary format in which it is sent thru communication interface to client.
Reimplemented from InfoBinaryFormat. Definition at line 47 of file thread.cpp. |
|
State of object. Once an object is unactive, it remains unactive forever.
Reimplemented from IdObject. Definition at line 240 of file thread.h. Referenced by MonThreadMethod::isActive(), CpuThreadMethod::isActive(), AllocThreadObject::isActive(), and AllocThreadMethod::isActive().
|
|
Indication that object has changed its data.
Reimplemented from IdObject. |
|
Compares object with given key.
|
|
Call trace for general temporary usage. There are MAX_TRACE frames. Definition at line 114 of file thread.h. Referenced by Sampling::doOneSample().
|
|
For monitor profiling purposes. Indicates whether JVMPI_EVENT_MONITOR_CONTENDED_ENTER event occured for this thread. The flag is cleared in JVMPI_EVENT_MONITOR_CONTENDED_ENTERED event. Definition at line 127 of file thread.h. Referenced by Prof::event_monitorContendedEnter(), and Prof::event_monitorContendedEntered().
|
|
For monitor profiling purposes. Holds the object id of the last JVMPI_EVENT_MONITOR_CONTENDED_ENTER event. Definition at line 133 of file thread.h. Referenced by Prof::event_monitorContendedEnter(), and Prof::event_monitorContendedEntered().
|
|
For monitor profiling purposes. Holds the time of the last JVMPI_EVENT_MONITOR_CONTENDED_ENTER event. Definition at line 139 of file thread.h. Referenced by Prof::event_monitorContendedEnter(), and Prof::event_monitorContendedEntered().
|