mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
26 lines
720 B
C++
Executable File
26 lines
720 B
C++
Executable File
#ifndef __TRACY_HPP__
|
|
#define __TRACY_HPP__
|
|
|
|
#ifdef TRACY_DISABLE
|
|
|
|
#define ZoneScoped
|
|
#define ZoneScopedC(x)
|
|
|
|
#define FrameMark
|
|
|
|
#else
|
|
|
|
#include "TracyProfiler.hpp"
|
|
#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 );
|
|
|
|
#define ZoneText( txt, size ) ___tracy_scoped_zone.Text( txt, size );
|
|
|
|
#define FrameMark tracy::Profiler::FrameMark();
|
|
|
|
#endif
|
|
|
|
#endif
|