summaryrefslogtreecommitdiff
path: root/navit/profile.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-18 10:01:53 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-18 10:01:53 +0000
commitca99b617483dd3b59fd42738e810309c4229a538 (patch)
treebe7bb1cb1020f4022e41c004e2fa9d561ea3580d /navit/profile.h
parent77ebd4f9df170e6211c5ace8d43c997d385d9ec9 (diff)
downloadnavit-svn-ca99b617483dd3b59fd42738e810309c4229a538.tar.gz
Fix:Core:Renamed src to navit for cleanup of includes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1059 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/profile.h')
-rw-r--r--navit/profile.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/navit/profile.h b/navit/profile.h
new file mode 100644
index 00000000..4afa16ae
--- /dev/null
+++ b/navit/profile.h
@@ -0,0 +1,17 @@
+#ifndef NAVIT_PROFILE_H
+#define NAVIT_PROFILE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#define profile_str2(x) #x
+#define profile_str1(x) profile_str2(x)
+#define profile_module profile_str1(MODULE)
+#define profile(level,fmt...) profile_timer(level,profile_module,__PRETTY_FUNCTION__,fmt)
+void profile_timer(int level, const char *module, const char *function, const char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+