hprof_monitor.c File Reference

#include "hprof.h"
Include dependency graph for hprof_monitor.c:

Go to the source code of this file.

Data Structures

struct  MonitorKey
struct  MonitorInfo
struct  IterateInfo

Functions

static MonitorKeyget_pkey (MonitorIndex index)
static MonitorInfoget_info (MonitorIndex index)
static MonitorIndex find_or_create_entry (JNIEnv *env, TraceIndex trace_index, jobject object)
static void cleanup_item (MonitorIndex index, void *key_ptr, int key_len, void *info_ptr, void *arg)
static void list_item (TableIndex index, void *key_ptr, int key_len, void *info_ptr, void *arg)
static void collect_iterator (MonitorIndex index, void *key_ptr, int key_len, void *info_ptr, void *arg)
static int qsort_compare (const void *p_monitor1, const void *p_monitor2)
static void clear_item (MonitorIndex index, void *key_ptr, int key_len, void *info_ptr, void *arg)
static TraceIndex get_trace (TlsIndex tls_index, JNIEnv *env)
void monitor_init (void)
void monitor_list (void)
void monitor_cleanup (void)
void monitor_clear (void)
void monitor_write_contended_time (JNIEnv *env, double cutoff)
void monitor_contended_enter_event (JNIEnv *env, jthread thread, jobject object)
void monitor_contended_entered_event (JNIEnv *env, jthread thread, jobject object)
void monitor_wait_event (JNIEnv *env, jthread thread, jobject object, jlong timeout)
void monitor_waited_event (JNIEnv *env, jthread thread, jobject object, jboolean timed_out)

Function Documentation

static void cleanup_item ( MonitorIndex  index,
void *  key_ptr,
int  key_len,
void *  info_ptr,
void *  arg 
) [static]

Definition at line 122 of file hprof_monitor.c.

Here is the caller graph for this function:

static void clear_item ( MonitorIndex  index,
void *  key_ptr,
int  key_len,
void *  info_ptr,
void *  arg 
) [static]

Definition at line 189 of file hprof_monitor.c.

Here is the caller graph for this function:

static void collect_iterator ( MonitorIndex  index,
void *  key_ptr,
int  key_len,
void *  info_ptr,
void *  arg 
) [static]

Definition at line 149 of file hprof_monitor.c.

Here is the caller graph for this function:

static MonitorIndex find_or_create_entry ( JNIEnv *  env,
TraceIndex  trace_index,
jobject  object 
) [static]

Definition at line 97 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static MonitorInfo* get_info ( MonitorIndex  index  )  [static]

Definition at line 86 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static MonitorKey* get_pkey ( MonitorIndex  index  )  [static]

Definition at line 74 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static TraceIndex get_trace ( TlsIndex  tls_index,
JNIEnv *  env 
) [static]

Definition at line 200 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void list_item ( TableIndex  index,
void *  key_ptr,
int  key_len,
void *  info_ptr,
void *  arg 
) [static]

Definition at line 127 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_cleanup ( void   ) 

Definition at line 228 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_clear ( void   ) 

Definition at line 235 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_contended_enter_event ( JNIEnv *  env,
jthread  thread,
jobject  object 
)

Definition at line 331 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_contended_entered_event ( JNIEnv *  env,
jthread  thread,
jobject  object 
)

Definition at line 350 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_init ( void   ) 

Definition at line 211 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_list ( void   ) 

Definition at line 218 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_wait_event ( JNIEnv *  env,
jthread  thread,
jobject  object,
jlong  timeout 
)

Definition at line 371 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_waited_event ( JNIEnv *  env,
jthread  thread,
jobject  object,
jboolean  timed_out 
)

Definition at line 398 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void monitor_write_contended_time ( JNIEnv *  env,
double  cutoff 
)

Definition at line 242 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int qsort_compare ( const void *  p_monitor1,
const void *  p_monitor2 
) [static]

Definition at line 164 of file hprof_monitor.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 19 Nov 2012 for hprof by  doxygen 1.6.1