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-20 19:30:28 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2017-10-20 19:30:28 +0300
commit3a0d77a35ad5a5effacaf61f6df4cdc049face71 (patch)
treef8cd26f208750755547e52598b12cb2f491fac70 /test
parentf1da7c1c859a5012897203fab4ba5887395a3985 (diff)
Send messages in test application.
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp12
1 files changed, 12 insertions, 0 deletions
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;