12 #ifndef __D_TRACY_PROFILER_H__
13 #define __D_TRACY_PROFILER_H__
16 #ifdef D_PROFILER_EXPORTS
17 #define D_PROFILER_API __declspec(dllexport)
19 #define D_PROFILER_API __declspec(dllimport)
31 D_PROFILER_API
void dProfilerEnableProlingLow();
33 D_PROFILER_API
void dProfilerEndTraceLow();
34 D_PROFILER_API
void dProfilerSetTrackNameLow(
const char*
const trackName);
44 dProfilerStartTraceLow(location);
49 dProfilerEndTraceLow();
53 #define dProfilerEnableProling() dProfilerEnableProlingLow();
54 #define dProfilerZoneScoped(name) \
55 static const dProfilerSourceLocation __dprofiler_source_location { name, __FUNCTION__, __FILE__, (long long)__LINE__, 0 }; \
56 dgProfile ___dgprofile_scoped_zone( &__dprofiler_source_location );
58 #define dProfilerSetTrackName(trackName) dProfilerSetTrackNameLow(trackName)
62 #define dProfilerEnableProling(mode);
63 #define dProfilerZoneScoped(name)
64 #define dProfilerSetTrackName(trackName)