hprof_error.h File Reference
Go to the source code of this file.
Defines |
| #define | HPROF_BOOL(x) ((jboolean)((x)==0?JNI_FALSE:JNI_TRUE)) |
| #define | HPROF_ERROR(fatal, msg) error_handler(HPROF_BOOL(fatal), JVMTI_ERROR_NONE, msg, __FILE__, __LINE__) |
| #define | HPROF_JVMTI_ERROR(error, msg) |
| #define | HPROF_ASSERT(cond) (((int)(cond))?(void)0:error_assert(#cond, __FILE__, __LINE__)) |
| #define | LOG_DUMP_MISC 0x1 |
| #define | LOG_DUMP_LISTS 0x2 |
| #define | LOG_CHECK_BINARY 0x4 |
| #define | LOG_STDERR(args) |
| #define | LOG_FORMAT(format) "HPROF LOG: " format " [%s:%d]\n" |
| #define | LOG1(str1) |
| #define | LOG2(str1, str2) |
| #define | LOG3(str1, str2, num) |
| #define | LOG(str) LOG1(str) |
Functions |
| void | error_handler (jboolean fatal, jvmtiError error, const char *message, const char *file, int line) |
| void | error_assert (const char *condition, const char *file, int line) |
| void | error_exit_process (int exit_code) |
| void | error_do_pause (void) |
| void | error_setup (void) |
| void | debug_message (const char *format,...) |
| void | verbose_message (const char *format,...) |
Define Documentation
| #define HPROF_ASSERT |
( |
cond |
|
) |
(((int)(cond))?(void)0:error_assert(#cond, __FILE__, __LINE__)) |
| #define HPROF_BOOL |
( |
x |
|
) |
((jboolean)((x)==0?JNI_FALSE:JNI_TRUE)) |
| #define HPROF_ERROR |
( |
fatal, |
|
|
msg |
|
) |
error_handler(HPROF_BOOL(fatal), JVMTI_ERROR_NONE, msg, __FILE__, __LINE__) |
| #define HPROF_JVMTI_ERROR |
( |
error, |
|
|
msg |
|
) |
|
| #define LOG |
( |
str |
|
) |
LOG1(str) |
| #define LOG2 |
( |
str1, |
|
|
str2 |
|
) |
|
| #define LOG3 |
( |
str1, |
|
|
str2, |
|
|
num |
|
) |
|
| #define LOG_CHECK_BINARY 0x4 |
| #define LOG_DUMP_LISTS 0x2 |
| #define LOG_DUMP_MISC 0x1 |
| #define LOG_FORMAT |
( |
format |
|
) |
"HPROF LOG: " format " [%s:%d]\n" |
| #define LOG_STDERR |
( |
args |
|
) |
|
Function Documentation
| void debug_message |
( |
const char * |
format, |
|
|
|
... | |
|
) |
| | |
| void error_assert |
( |
const char * |
condition, |
|
|
const char * |
file, |
|
|
int |
line | |
|
) |
| | |
| void error_do_pause |
( |
void |
|
) |
|
| void error_exit_process |
( |
int |
exit_code |
) |
|
| void error_handler |
( |
jboolean |
fatal, |
|
|
jvmtiError |
error, |
|
|
const char * |
message, |
|
|
const char * |
file, |
|
|
int |
line | |
|
) |
| | |
| void error_setup |
( |
void |
|
) |
|
| void verbose_message |
( |
const char * |
format, |
|
|
|
... | |
|
) |
| | |