From 3a0d77a35ad5a5effacaf61f6df4cdc049face71 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 20 Oct 2017 18:30:28 +0200 Subject: [PATCH] Send messages in test application. --- test/test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test.cpp b/test/test.cpp index 0e5d6bc5..4de0ed55 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -90,6 +90,15 @@ void Plot() } } +void MessageTest() +{ + for(;;) + { + TracyMessage( "Tock", 4 ); + std::this_thread::sleep_for( std::chrono::milliseconds( 5 ) ); + } +} + int main() { auto t1 = std::thread( TestFunction ); @@ -101,6 +110,7 @@ int main() auto t7 = std::thread( Lock3 ); auto t8 = std::thread( Plot ); auto t9 = std::thread( Plot ); + auto t10 = std::thread( MessageTest ); tracy::SetThreadName( t1, "First thread" ); tracy::SetThreadName( t2, "Second thread" ); @@ -111,9 +121,11 @@ int main() tracy::SetThreadName( t7, "Lock 3" ); tracy::SetThreadName( t8, "Plot 1" ); tracy::SetThreadName( t9, "Plot 2" ); + tracy::SetThreadName( t10, "Message test" ); for(;;) { + TracyMessageL( "Tick" ); std::this_thread::sleep_for( std::chrono::milliseconds( 2 ) ); { ZoneScoped;