1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Custom per-zone name transfer.

This commit is contained in:
Bartosz Taudul
2018-06-29 16:01:31 +02:00
parent ac89c6de33
commit b29d60056a
5 changed files with 49 additions and 1 deletions
+2 -1
View File
@@ -12,7 +12,7 @@
#define ZoneScopedNC(x,y)
#define ZoneText(x,y)
#define ZoneName(x)
#define ZoneName(x,y)
#define FrameMark
@@ -46,6 +46,7 @@
#define ZoneScopedNC( name, color ) static const tracy::SourceLocation __tracy_source_location { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location );
#define ZoneText( txt, size ) ___tracy_scoped_zone.Text( txt, size );
#define ZoneName( txt, size ) ___tracy_scoped_zone.Name( txt, size );
#define FrameMark tracy::Profiler::FrameMark();