navit  0.5.3-trunk
profile.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_PROFILE_H
21 #define NAVIT_PROFILE_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 #ifdef _MSC_VER
27 #define __PRETTY_FUNCTION__ __FUNCTION__
28 #endif
29 #define profile_str2(x) #x
30 #define profile_str1(x) profile_str2(x)
31 #define profile_module profile_str1(MODULE)
32 /*
33  * Macro for logging timing information.
34  * See function profile_timer for more information.
35  */
36 #define profile(level,...) profile_timer(level,profile_module,__PRETTY_FUNCTION__,__VA_ARGS__)
37 void profile_timer(int level, const char *module, const char *function, const char *fmt, ...);
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif
43 
void profile_timer(int level, const char *module, const char *function, const char *fmt,...)
Log timing information.
Definition: profile.c:56
Definition: garmin_img.c:476