mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add second scope test.
This commit is contained in:
parent
7770014844
commit
b89adbaf8c
@ -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(;;)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user