Browse Source

Added Profiler.cake to handle both profiling cases

When 'Profile isn't defined, the null/stub profiler macros will be
used. When it is defined, macros that generate Tracy zones/tags will
be used.
master
Macoy Madson 9 months ago
parent
commit
d951a604c0
  1. 6
      src/Profiler.cake

6
src/Profiler.cake

@ -0,0 +1,6 @@
(export-and-evaluate
(comptime-cond
('Profile ;; TODO: Different defines for different profilers
(import "Tracy.cake"))
(true
(import "ProfilerNull.cake"))))
Loading…
Cancel
Save