CoriEngine
Loading...
Searching...
No Matches
Profiler.hpp
Go to the documentation of this file.
1#pragma once
2
3#ifdef CORI_ENABLE_PROFILING
4#include <tracy/Tracy.hpp>
5#define CORI_PROFILE_FUNCTION() ZoneScopedS(35)
6#define CORI_PROFILE_SCOPE(name) ZoneScopedN(name)
7#define CORI_PROFILER_FRAME_START() FrameMark
8#else
9#define CORI_PROFILE_FUNCTION()
10#define CORI_PROFILE_SCOPE(name)
11#define CORI_PROFILER_FRAME_START()
12#endif
13
14