From 57454d39851819af1715948043aa9d955c9bb4a8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 19 Oct 2017 18:57:41 +0200 Subject: Add plots to test application. --- test/test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/test.cpp b/test/test.cpp index c8b81d19..0e5d6bc5 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -77,6 +77,19 @@ void Lock3() } } +void Plot() +{ + unsigned char i = 0; + for(;;) + { + for( int j=0; j<1024; j++ ) + { + TracyPlot( "Test plot", (int64_t)i++ ); + } + std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) ); + } +} + int main() { auto t1 = std::thread( TestFunction ); @@ -86,6 +99,8 @@ int main() auto t5 = std::thread( Lock1 ); auto t6 = std::thread( Lock2 ); auto t7 = std::thread( Lock3 ); + auto t8 = std::thread( Plot ); + auto t9 = std::thread( Plot ); tracy::SetThreadName( t1, "First thread" ); tracy::SetThreadName( t2, "Second thread" ); @@ -94,6 +109,8 @@ int main() tracy::SetThreadName( t5, "Lock 1" ); tracy::SetThreadName( t6, "Lock 2" ); tracy::SetThreadName( t7, "Lock 3" ); + tracy::SetThreadName( t8, "Plot 1" ); + tracy::SetThreadName( t9, "Plot 2" ); for(;;) { -- cgit v1.2.3