summaryrefslogtreecommitdiff
path: root/src/util/profiler.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-07-27 11:55:57 +0200
committeraura <nw@moneybot.cc>2026-07-27 11:55:57 +0200
commit372f23024163e0fab57a847ddda41f06857efd7e (patch)
treeca57dd38a583387a7bbcc970b7d359731df0f4bf /src/util/profiler.h
parent452e3619450ab9e7d22886445f61cc90272e4d60 (diff)
undo/redo props - WIP
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