From b89adbaf8cff7e6bc160d35c80eca4cebd1b1629 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 Sep 2017 21:37:14 +0200 Subject: Add second scope test. --- test/test.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/test.cpp b/test/test.cpp index 125c11b5..f5315b98 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -29,16 +29,26 @@ void ResolutionCheck() } +void ScopeCheck() +{ + for(;;) + { + std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) ); + ZoneScoped; + } +} int main() { auto t1 = std::thread( TestFunction ); auto t2 = std::thread( TestFunction ); auto t3 = std::thread( ResolutionCheck ); + auto t4 = std::thread( ScopeCheck ); tracy::SetThreadName( t1, "First thread" ); tracy::SetThreadName( t2, "Second thread" ); tracy::SetThreadName( t3, "Resolution check" ); + tracy::SetThreadName( t4, "Scope check" ); for(;;) { -- cgit v1.2.3