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-09-23 22:37:14 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2017-09-23 22:37:14 +0300
commitb89adbaf8cff7e6bc160d35c80eca4cebd1b1629 (patch)
tree891106d3ac320199213bcf9893f854eb3619de06 /test
parent7770014844a5f351d8b386d1c946390717d51b09 (diff)
Add second scope test.
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp10
1 files changed, 10 insertions, 0 deletions
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(;;)
{