hprof_reference.c File Reference

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

Go to the source code of this file.

Data Structures

struct  RefInfo

Enumerations

enum  { INFO_OBJECT_REF_DATA = 1, INFO_PRIM_FIELD_DATA = 2, INFO_PRIM_ARRAY_DATA = 3 }

Functions

static RefInfoget_info (RefIndex index)
static jvalue get_key_value (RefIndex index)
static jint get_prim_size (jvmtiPrimitiveType primType)
static void * get_key_elements (RefIndex index, jvmtiPrimitiveType primType, jint *nelements, jint *nbytes)
static void dump_ref_info (RefInfo *info)
static void dump_ref_list (RefIndex list)
static void dump_field (FieldInfo *fields, jvalue *fvalues, int n_fields, jint index, jvalue value, jvmtiPrimitiveType primType)
static void dump_fields (RefIndex list, FieldInfo *fields, jvalue *fvalues, int n_fields)
static void verify_field (RefIndex list, FieldInfo *fields, jvalue *fvalues, int n_fields, jint index, jvalue value, jvmtiPrimitiveType primType)
static void fill_in_field_value (RefIndex list, FieldInfo *fields, jvalue *fvalues, int n_fields, jint index, jvalue value, jvmtiPrimitiveType primType)
static void dump_class_and_supers (JNIEnv *env, ObjectIndex object_index, RefIndex list)
static void dump_instance (JNIEnv *env, ObjectIndex object_index, RefIndex list)
void reference_init (void)
RefIndex reference_obj (RefIndex next, jvmtiHeapReferenceKind refKind, ObjectIndex object_index, jint index, jint length)
RefIndex reference_prim_field (RefIndex next, jvmtiHeapReferenceKind refKind, jvmtiPrimitiveType primType, jvalue field_value, jint field_index)
RefIndex reference_prim_array (RefIndex next, jvmtiPrimitiveType primType, const void *elements, jint elementCount)
void reference_cleanup (void)
void reference_dump_instance (JNIEnv *env, ObjectIndex object_index, RefIndex list)
void reference_dump_class (JNIEnv *env, ObjectIndex object_index, RefIndex list)

Enumeration Type Documentation

anonymous enum
Enumerator:
INFO_OBJECT_REF_DATA 
INFO_PRIM_FIELD_DATA 
INFO_PRIM_ARRAY_DATA 

Definition at line 66 of file hprof_reference.c.


Function Documentation

static void dump_class_and_supers ( JNIEnv *  env,
ObjectIndex  object_index,
RefIndex  list 
) [static]

Definition at line 308 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dump_field ( FieldInfo fields,
jvalue *  fvalues,
int  n_fields,
jint  index,
jvalue  value,
jvmtiPrimitiveType  primType 
) [static]

Definition at line 212 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dump_fields ( RefIndex  list,
FieldInfo fields,
jvalue *  fvalues,
int  n_fields 
) [static]

Definition at line 250 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dump_instance ( JNIEnv *  env,
ObjectIndex  object_index,
RefIndex  list 
) [static]

Definition at line 498 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dump_ref_info ( RefInfo info  )  [static]

Definition at line 176 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dump_ref_list ( RefIndex  list  )  [static]

Definition at line 196 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void fill_in_field_value ( RefIndex  list,
FieldInfo fields,
jvalue *  fvalues,
int  n_fields,
jint  index,
jvalue  value,
jvmtiPrimitiveType  primType 
) [static]

Definition at line 291 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static RefInfo* get_info ( RefIndex  index  )  [static]

Definition at line 87 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void* get_key_elements ( RefIndex  index,
jvmtiPrimitiveType  primType,
jint *  nelements,
jint *  nbytes 
) [static]

Definition at line 157 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jvalue get_key_value ( RefIndex  index  )  [static]

Definition at line 97 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static jint get_prim_size ( jvmtiPrimitiveType  primType  )  [static]

Definition at line 118 of file hprof_reference.c.

Here is the caller graph for this function:

void reference_cleanup ( void   ) 

Definition at line 791 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void reference_dump_class ( JNIEnv *  env,
ObjectIndex  object_index,
RefIndex  list 
)

Definition at line 807 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void reference_dump_instance ( JNIEnv *  env,
ObjectIndex  object_index,
RefIndex  list 
)

Definition at line 801 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void reference_init ( void   ) 

Definition at line 715 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

RefIndex reference_obj ( RefIndex  next,
jvmtiHeapReferenceKind  refKind,
ObjectIndex  object_index,
jint  index,
jint  length 
)

Definition at line 724 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

RefIndex reference_prim_array ( RefIndex  next,
jvmtiPrimitiveType  primType,
const void *  elements,
jint  elementCount 
)

Definition at line 767 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

RefIndex reference_prim_field ( RefIndex  next,
jvmtiHeapReferenceKind  refKind,
jvmtiPrimitiveType  primType,
jvalue  field_value,
jint  field_index 
)

Definition at line 744 of file hprof_reference.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void verify_field ( RefIndex  list,
FieldInfo fields,
jvalue *  fvalues,
int  n_fields,
jint  index,
jvalue  value,
jvmtiPrimitiveType  primType 
) [static]

Definition at line 265 of file hprof_reference.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