hprof_error.h File Reference

This graph shows which files directly or indirectly include this file:

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__))

Definition at line 52 of file hprof_error.h.

#define HPROF_BOOL (  )     ((jboolean)((x)==0?JNI_FALSE:JNI_TRUE))

Definition at line 42 of file hprof_error.h.

#define HPROF_ERROR ( fatal,
msg   )     error_handler(HPROF_BOOL(fatal), JVMTI_ERROR_NONE, msg, __FILE__, __LINE__)

Definition at line 44 of file hprof_error.h.

#define HPROF_JVMTI_ERROR ( error,
msg   ) 
Value:
error_handler(HPROF_BOOL(error!=JVMTI_ERROR_NONE), \
      error, msg, __FILE__, __LINE__)

Definition at line 47 of file hprof_error.h.

#define LOG ( str   )     LOG1(str)

Definition at line 82 of file hprof_error.h.

#define LOG1 ( str1   ) 
Value:
LOG_STDERR((stderr, LOG_FORMAT("%s"), \
                                    str1, __FILE__, __LINE__ ))

Definition at line 75 of file hprof_error.h.

#define LOG2 ( str1,
str2   ) 
Value:
LOG_STDERR((stderr, LOG_FORMAT("%s %s"), \
                                    str1, str2, __FILE__, __LINE__ ))

Definition at line 77 of file hprof_error.h.

#define LOG3 ( str1,
str2,
num   ) 
Value:
LOG_STDERR((stderr, LOG_FORMAT("%s %s 0x%x"), \
                                    str1, str2, num, __FILE__, __LINE__ ))

Definition at line 79 of file hprof_error.h.

#define LOG_CHECK_BINARY   0x4

Definition at line 60 of file hprof_error.h.

#define LOG_DUMP_LISTS   0x2

Definition at line 59 of file hprof_error.h.

#define LOG_DUMP_MISC   0x1

Definition at line 58 of file hprof_error.h.

#define LOG_FORMAT ( format   )     "HPROF LOG: " format " [%s:%d]\n"

Definition at line 73 of file hprof_error.h.

#define LOG_STDERR ( args   ) 

Definition at line 70 of file hprof_error.h.


Function Documentation

void debug_message ( const char *  format,
  ... 
)

Definition at line 192 of file hprof_error.c.

Here is the caller graph for this function:

void error_assert ( const char *  condition,
const char *  file,
int  line 
)

Definition at line 157 of file hprof_error.c.

Here is the call graph for this function:

void error_do_pause ( void   ) 

Definition at line 113 of file hprof_error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void error_exit_process ( int  exit_code  ) 

Definition at line 131 of file hprof_error.c.

Here is the caller graph for this function:

void error_handler ( jboolean  fatal,
jvmtiError  error,
const char *  message,
const char *  file,
int  line 
)

Definition at line 165 of file hprof_error.c.

Here is the call graph for this function:

void error_setup ( void   ) 

Definition at line 107 of file hprof_error.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void verbose_message ( const char *  format,
  ... 
)

Definition at line 202 of file hprof_error.c.

Here is the caller graph for this function:


Generated on 19 Nov 2012 for hprof by  doxygen 1.6.1