hprof_site.c File Reference

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

Go to the source code of this file.

Data Structures

struct  SiteKey
struct  SiteInfo
struct  IterateInfo

Functions

static SiteKeyget_pkey (SiteIndex index)
ClassIndex site_get_class_index (SiteIndex index)
TraceIndex site_get_trace_index (SiteIndex index)
static SiteInfoget_info (SiteIndex index)
static void list_item (TableIndex i, void *key_ptr, int key_len, void *info_ptr, void *arg)
static void collect_iterator (TableIndex i, void *key_ptr, int key_len, void *info_ptr, void *arg)
static void mark_unchanged_iterator (TableIndex i, void *key_ptr, int key_len, void *info_ptr, void *arg)
static int qsort_compare_allocated_bytes (const void *p_site1, const void *p_site2)
static int qsort_compare_live_bytes (const void *p_site1, const void *p_site2)
static ClassIndex find_cnum (jlong class_tag)
static jlong make_new_tag (jlong class_tag, jlong size, TraceIndex trace_index, SerialNumber thread_serial_num, ObjectIndex *pindex, SiteIndex *psite)
static void setup_tag_on_root (jlong *tag_ptr, jlong class_tag, jlong size, SerialNumber thread_serial_num, ObjectIndex *pindex, SiteIndex *psite)
SiteIndex site_find_or_create (ClassIndex cnum, TraceIndex trace_index)
void site_init (void)
void site_list (void)
void site_cleanup (void)
void site_update_stats (SiteIndex index, jint size, jint hits)
void site_write (JNIEnv *env, int flags, double cutoff)
static jint JNICALL cbPrimArrayData (jlong class_tag, jlong size, jlong *tag_ptr, jint element_count, jvmtiPrimitiveType element_type, const void *elements, void *user_data)
static jint JNICALL cbPrimFieldData (jvmtiHeapReferenceKind reference_kind, const jvmtiHeapReferenceInfo *reference_info, jlong class_tag, jlong *tag_ptr, jvalue value, jvmtiPrimitiveType value_type, void *user_data)
static SerialNumber checkThreadSerialNumber (SerialNumber thread_serial_num)
static void localReference (jlong *tag_ptr, jlong class_tag, jlong thread_tag, jlong size, ObjectIndex *pobject_index, SerialNumber *pthread_serial_num)
static jint objectReference (jvmtiHeapReferenceKind reference_kind, const jvmtiHeapReferenceInfo *reference_info, jlong class_tag, jlong size, jlong *tag_ptr, jlong *referrer_tag_ptr, jint length)
static jint JNICALL cbReference (jvmtiHeapReferenceKind reference_kind, const jvmtiHeapReferenceInfo *reference_info, jlong class_tag, jlong referrer_class_tag, jlong size, jlong *tag_ptr, jlong *referrer_tag_ptr, jint length, void *user_data)
void site_heapdump (JNIEnv *env)

Function Documentation

static jint JNICALL cbPrimArrayData ( jlong  class_tag,
jlong  size,
jlong *  tag_ptr,
jint  element_count,
jvmtiPrimitiveType  element_type,
const void *  elements,
void *  user_data 
) [static]

Definition at line 480 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jint JNICALL cbPrimFieldData ( jvmtiHeapReferenceKind  reference_kind,
const jvmtiHeapReferenceInfo *  reference_info,
jlong  class_tag,
jlong *  tag_ptr,
jvalue  value,
jvmtiPrimitiveType  value_type,
void *  user_data 
) [static]

Definition at line 510 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jint JNICALL cbReference ( jvmtiHeapReferenceKind  reference_kind,
const jvmtiHeapReferenceInfo *  reference_info,
jlong  class_tag,
jlong  referrer_class_tag,
jlong  size,
jlong *  tag_ptr,
jlong *  referrer_tag_ptr,
jint  length,
void *  user_data 
) [static]

Definition at line 674 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static SerialNumber checkThreadSerialNumber ( SerialNumber  thread_serial_num  )  [static]

Definition at line 549 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void collect_iterator ( TableIndex  i,
void *  key_ptr,
int  key_len,
void *  info_ptr,
void *  arg 
) [static]

Definition at line 159 of file hprof_site.c.

Here is the caller graph for this function:

static ClassIndex find_cnum ( jlong  class_tag  )  [static]

Definition at line 228 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static SiteInfo* get_info ( SiteIndex  index  )  [static]

Definition at line 110 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static SiteKey* get_pkey ( SiteIndex  index  )  [static]

Definition at line 80 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 119 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void localReference ( jlong *  tag_ptr,
jlong  class_tag,
jlong  thread_tag,
jlong  size,
ObjectIndex pobject_index,
SerialNumber pthread_serial_num 
) [static]

Definition at line 565 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jlong make_new_tag ( jlong  class_tag,
jlong  size,
TraceIndex  trace_index,
SerialNumber  thread_serial_num,
ObjectIndex pindex,
SiteIndex psite 
) [static]

Definition at line 245 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void mark_unchanged_iterator ( TableIndex  i,
void *  key_ptr,
int  key_len,
void *  info_ptr,
void *  arg 
) [static]

Definition at line 180 of file hprof_site.c.

Here is the caller graph for this function:

static jint objectReference ( jvmtiHeapReferenceKind  reference_kind,
const jvmtiHeapReferenceInfo *  reference_info,
jlong  class_tag,
jlong  size,
jlong *  tag_ptr,
jlong *  referrer_tag_ptr,
jint  length 
) [static]

Definition at line 604 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int qsort_compare_allocated_bytes ( const void *  p_site1,
const void *  p_site2 
) [static]

Definition at line 194 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int qsort_compare_live_bytes ( const void *  p_site1,
const void *  p_site2 
) [static]

Definition at line 211 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void setup_tag_on_root ( jlong *  tag_ptr,
jlong  class_tag,
jlong  size,
SerialNumber  thread_serial_num,
ObjectIndex pindex,
SiteIndex psite 
) [static]

Definition at line 267 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void site_cleanup ( void   ) 

Definition at line 324 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

SiteIndex site_find_or_create ( ClassIndex  cnum,
TraceIndex  trace_index 
)

Definition at line 289 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ClassIndex site_get_class_index ( SiteIndex  index  ) 

Definition at line 92 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

TraceIndex site_get_trace_index ( SiteIndex  index  ) 

Definition at line 101 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void site_heapdump ( JNIEnv *  env  ) 

Definition at line 844 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void site_init ( void   ) 

Definition at line 306 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void site_list ( void   ) 

Definition at line 314 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void site_update_stats ( SiteIndex  index,
jint  size,
jint  hits 
)

Definition at line 331 of file hprof_site.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void site_write ( JNIEnv *  env,
int  flags,
double  cutoff 
)

Definition at line 366 of file hprof_site.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