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

More force inlining.

This commit is contained in:
Bartosz Taudul
2017-10-03 15:10:25 +02:00
parent fe41185dc0
commit e01d378f52
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ namespace tracy
class ScopedZone
{
public:
ScopedZone( const SourceLocation* srcloc )
tracy_force_inline ScopedZone( const SourceLocation* srcloc )
: m_id( Profiler::GetNewId() )
{
Magic magic;
@@ -26,7 +26,7 @@ public:
Profiler::FinishItem( magic );
}
~ScopedZone()
tracy_force_inline ~ScopedZone()
{
Magic magic;
auto item = Profiler::StartItem( magic );
@@ -36,7 +36,7 @@ public:
Profiler::FinishItem( magic );
}
void Text( const char* txt, size_t size )
tracy_force_inline void Text( const char* txt, size_t size )
{
Magic magic;
auto ptr = new char[size+1];
@@ -49,7 +49,7 @@ public:
Profiler::FinishItem( magic );
}
void Name( const char* name )
tracy_force_inline void Name( const char* name )
{
Magic magic;
auto item = Profiler::StartItem( magic );