mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-16 16:19:42 +00:00
Store TextData pointer as an index in array.
This further reduces ZoneEvent size by 4 bytes.
This commit is contained in:
@@ -10,6 +10,7 @@ void TestFunction()
|
||||
{
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) );
|
||||
ZoneScoped;
|
||||
ZoneName( "Test function" );
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) );
|
||||
}
|
||||
}
|
||||
@@ -111,6 +112,9 @@ void DepthTest()
|
||||
for(;;)
|
||||
{
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 20 ) );
|
||||
ZoneScoped;
|
||||
const auto txt = "Fibonacci (15)";
|
||||
ZoneText( txt, strlen( txt ) );
|
||||
Fibonacci( 15 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user