Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2017-10-22 17:40:15 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2017-10-22 17:40:15 +0300
commitcc8683a399e9f46e264bad49751aed64173d97fd (patch)
tree5b66f28632e2f4b965478296d2db5106f6e96a00 /test
parent2e6350877d27488cb3378f9b418ab598889b5c38 (diff)
Store TextData pointer as an index in array.
This further reduces ZoneEvent size by 4 bytes.
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.cpp b/test/test.cpp
index d87439ed..f73e329a 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -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 );
}
}