2017-09-10 18:10:20 +00:00
|
|
|
#ifndef __TRACY_HPP__
|
|
|
|
#define __TRACY_HPP__
|
|
|
|
|
2017-09-18 17:08:54 +00:00
|
|
|
#ifdef TRACY_DISABLE
|
|
|
|
|
|
|
|
#define ZoneScoped
|
2017-09-25 20:46:14 +00:00
|
|
|
#define ZoneScopedC(x)
|
|
|
|
|
2017-09-18 17:08:54 +00:00
|
|
|
#define FrameMark
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2017-09-15 22:30:27 +00:00
|
|
|
#include "TracyProfiler.hpp"
|
2017-09-10 18:10:20 +00:00
|
|
|
#include "TracyScoped.hpp"
|
|
|
|
|
2017-09-25 20:46:14 +00:00
|
|
|
#define ZoneScoped tracy::ScopedZone ___tracy_scoped_zone( __FILE__, __FUNCTION__, __LINE__, 0 );
|
|
|
|
#define ZoneScopedC( color ) tracy::ScopedZone ___tracy_scoped_zone( __FILE__, __FUNCTION__, __LINE__, color );
|
|
|
|
|
2017-09-15 22:30:27 +00:00
|
|
|
#define FrameMark tracy::Profiler::FrameMark();
|
2017-09-10 18:10:20 +00:00
|
|
|
|
|
|
|
#endif
|
2017-09-18 17:08:54 +00:00
|
|
|
|
|
|
|
#endif
|