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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user