1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 22:13:51 +00:00

Add second scope test.

This commit is contained in:
Bartosz Taudul 2017-09-23 21:37:14 +02:00
parent 7770014844
commit b89adbaf8c

View File

@ -29,16 +29,26 @@ void ResolutionCheck()
} }
void ScopeCheck()
{
for(;;)
{
std::this_thread::sleep_for( std::chrono::milliseconds( 1 ) );
ZoneScoped;
}
}
int main() int main()
{ {
auto t1 = std::thread( TestFunction ); auto t1 = std::thread( TestFunction );
auto t2 = std::thread( TestFunction ); auto t2 = std::thread( TestFunction );
auto t3 = std::thread( ResolutionCheck ); auto t3 = std::thread( ResolutionCheck );
auto t4 = std::thread( ScopeCheck );
tracy::SetThreadName( t1, "First thread" ); tracy::SetThreadName( t1, "First thread" );
tracy::SetThreadName( t2, "Second thread" ); tracy::SetThreadName( t2, "Second thread" );
tracy::SetThreadName( t3, "Resolution check" ); tracy::SetThreadName( t3, "Resolution check" );
tracy::SetThreadName( t4, "Scope check" );
for(;;) for(;;)
{ {