Rename FrameMark() to SendFrameMark().

This avoids conflict with FrameMark define.
This commit is contained in:
Bartosz Taudul 2018-07-13 20:08:57 +02:00
parent 0e59c6e98d
commit a3c898f8b8
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@
#define ZoneText( txt, size ) ___tracy_scoped_zone.Text( txt, size ); #define ZoneText( txt, size ) ___tracy_scoped_zone.Text( txt, size );
#define ZoneName( txt, size ) ___tracy_scoped_zone.Name( txt, size ); #define ZoneName( txt, size ) ___tracy_scoped_zone.Name( txt, size );
#define FrameMark tracy::Profiler::FrameMark(); #define FrameMark tracy::Profiler::SendFrameMark();
#define TracyLockable( type, varname ) tracy::Lockable<type> varname { [] () -> const tracy::SourceLocation* { static const tracy::SourceLocation srcloc { nullptr, #type " " #varname, __FILE__, __LINE__, 0 }; return &srcloc; }() }; #define TracyLockable( type, varname ) tracy::Lockable<type> varname { [] () -> const tracy::SourceLocation* { static const tracy::SourceLocation srcloc { nullptr, #type " " #varname, __FILE__, __LINE__, 0 }; return &srcloc; }() };
#define TracyLockableN( type, varname, desc ) tracy::Lockable<type> varname { [] () -> const tracy::SourceLocation* { static const tracy::SourceLocation srcloc { nullptr, desc, __FILE__, __LINE__, 0 }; return &srcloc; }() }; #define TracyLockableN( type, varname, desc ) tracy::Lockable<type> varname { [] () -> const tracy::SourceLocation* { static const tracy::SourceLocation srcloc { nullptr, desc, __FILE__, __LINE__, 0 }; return &srcloc; }() };

View File

@ -116,7 +116,7 @@ public:
#endif #endif
} }
static tracy_force_inline void FrameMark() static tracy_force_inline void SendFrameMark()
{ {
#ifdef TRACY_ON_DEMAND #ifdef TRACY_ON_DEMAND
s_profiler.m_frameCount.fetch_add( 1, std::memory_order_relaxed ); s_profiler.m_frameCount.fetch_add( 1, std::memory_order_relaxed );