#include "hprof.h"
Go to the source code of this file.
Data Structures | |
| struct | SiteKey |
| struct | SiteInfo |
| struct | IterateInfo |
Functions | |
| static SiteKey * | get_pkey (SiteIndex index) |
| ClassIndex | site_get_class_index (SiteIndex index) |
| TraceIndex | site_get_trace_index (SiteIndex index) |
| static SiteInfo * | get_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) |
| 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.


| 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.


| 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.


| static SerialNumber checkThreadSerialNumber | ( | SerialNumber | thread_serial_num | ) | [static] |
Definition at line 549 of file hprof_site.c.


| static void collect_iterator | ( | TableIndex | i, | |
| void * | key_ptr, | |||
| int | key_len, | |||
| void * | info_ptr, | |||
| void * | arg | |||
| ) | [static] |
| static ClassIndex find_cnum | ( | jlong | class_tag | ) | [static] |
Definition at line 228 of file hprof_site.c.


Definition at line 110 of file hprof_site.c.


Definition at line 80 of file hprof_site.c.


| 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.


| 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.


| 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.


| static void mark_unchanged_iterator | ( | TableIndex | i, | |
| void * | key_ptr, | |||
| int | key_len, | |||
| void * | info_ptr, | |||
| void * | arg | |||
| ) | [static] |
| 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.


| static int qsort_compare_allocated_bytes | ( | const void * | p_site1, | |
| const void * | p_site2 | |||
| ) | [static] |
Definition at line 194 of file hprof_site.c.


| static int qsort_compare_live_bytes | ( | const void * | p_site1, | |
| const void * | p_site2 | |||
| ) | [static] |
Definition at line 211 of file hprof_site.c.


| 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.


| void site_cleanup | ( | void | ) |
Definition at line 324 of file hprof_site.c.


| SiteIndex site_find_or_create | ( | ClassIndex | cnum, | |
| TraceIndex | trace_index | |||
| ) |
Definition at line 289 of file hprof_site.c.


| ClassIndex site_get_class_index | ( | SiteIndex | index | ) |
Definition at line 92 of file hprof_site.c.


| TraceIndex site_get_trace_index | ( | SiteIndex | index | ) |
Definition at line 101 of file hprof_site.c.


| void site_heapdump | ( | JNIEnv * | env | ) |
Definition at line 844 of file hprof_site.c.


| void site_init | ( | void | ) |
Definition at line 306 of file hprof_site.c.


| void site_list | ( | void | ) |
Definition at line 314 of file hprof_site.c.


| void site_update_stats | ( | SiteIndex | index, | |
| jint | size, | |||
| jint | hits | |||
| ) |
Definition at line 331 of file hprof_site.c.


| void site_write | ( | JNIEnv * | env, | |
| int | flags, | |||
| double | cutoff | |||
| ) |
Definition at line 366 of file hprof_site.c.


1.6.1