1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Set worker thread name.

This commit is contained in:
Bartosz Taudul
2017-09-10 17:46:20 +02:00
parent a5d6039aea
commit 4a05da273f
3 changed files with 64 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
#include <assert.h>
#include "TracyProfiler.hpp"
#include "TracySystem.hpp"
namespace tracy
{
@@ -14,6 +15,7 @@ Profiler::Profiler()
s_instance = this;
m_thread = std::thread( [this] { Worker(); } );
SetThreadName( m_thread, "Tracy Profiler" );
}
Profiler::~Profiler()