From 0b568d55bafba5ba436d5c374549845aa846cb1e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 28 Aug 2018 01:48:03 +0200 Subject: [PATCH] Add thread that only allocates memory. --- test/test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(;;) {