summaryrefslogtreecommitdiff
path: root/src/util/profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/profiler.h')
-rw-r--r--src/util/profiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/profiler.h b/src/util/profiler.h
index 05e4b0c..c7a0fd1 100644
--- a/src/util/profiler.h
+++ b/src/util/profiler.h
@@ -142,6 +142,7 @@ extern void __profiler_intern_draw_overlay( struct GL_FONT* font );
#define profiler_init() __profiler_intern_init()
#define profiler_draw_tree( font ) __profiler_intern_draw_overlay( font )
#define profiler_trace() __profiler_intern_trace()
+#define trace( ... ) do { dlog( __VA_ARGS__ ); profiler_trace(); } while(0)
#else
#define PROFILE( x )
@@ -149,4 +150,5 @@ extern void __profiler_intern_draw_overlay( struct GL_FONT* font );
#define profiler_trace()
#define profiler_init()
#define profiler_draw_tree( x )
+#define trace( ... )
#endif