Store TextData pointer as an index in array.

This further reduces ZoneEvent size by 4 bytes.
This commit is contained in:
Bartosz Taudul
2017-10-22 16:40:15 +02:00
parent 2e6350877d
commit cc8683a399
4 changed files with 64 additions and 55 deletions

View File

@@ -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 );
}
}