tracy/client/Tracy.hpp

24 lines
649 B
C++
Raw Normal View History

2017-09-10 18:10:20 +00:00
#ifndef __TRACY_HPP__
#define __TRACY_HPP__
#ifdef TRACY_DISABLE
#define ZoneScoped
2017-09-25 20:46:14 +00:00
#define ZoneScopedC(x)
#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"
#define ZoneScoped static const tracy::SourceLocation __tracy_source_location { __FUNCTION__, __FILE__, __LINE__, 0 }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location );
#define ZoneScopedC( color ) static const tracy::SourceLocation __tracy_source_location { __FUNCTION__, __FILE__, __LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location );
2017-09-25 20:46:14 +00:00
2017-09-15 22:30:27 +00:00
#define FrameMark tracy::Profiler::FrameMark();
2017-09-10 18:10:20 +00:00
#endif
#endif