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>2018-08-28 02:48:03 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2018-08-28 02:48:03 +0300
commit0b568d55bafba5ba436d5c374549845aa846cb1e (patch)
tree33df672dbe941a030ae7319db38bd4652670b5d5 /test
parent00da3ba6ebe5a4c78eafa622b2aa04bf60b8f656 (diff)
Add thread that only allocates memory.
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test.cpp b/test/test.cpp
index 8ed59412..b81fca90 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -220,6 +220,11 @@ void CallstackTime()
}
}
+void OnlyMemory()
+{
+ new int;
+}
+
int main()
{
auto t1 = std::thread( TestFunction );
@@ -241,6 +246,7 @@ int main()
auto t17 = std::thread( SharedWrite1 );
auto t18 = std::thread( SharedWrite2 );
auto t19 = std::thread( CallstackTime );
+ auto t20 = std::thread( OnlyMemory );
tracy::SetThreadName( t1, "First thread" );
tracy::SetThreadName( t2, "Second thread" );
@@ -261,6 +267,7 @@ int main()
tracy::SetThreadName( t17, "Shared write 1" );
tracy::SetThreadName( t18, "Shared write 2" );
tracy::SetThreadName( t19, "Callstack time" );
+ tracy::SetThreadName( t20, "Only memory" );
for(;;)
{