mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
SetThreadName() only works on the current thread.
This breaking change is required, because kernel trace facilities use kernel thread ids, which are inaccessible from the pthread_t level.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
# include <evntcons.h>
|
||||
|
||||
# include "../common/TracyAlloc.hpp"
|
||||
# include "../common/TracySystem.hpp"
|
||||
# include "TracyProfiler.hpp"
|
||||
|
||||
namespace tracy
|
||||
@@ -143,6 +144,7 @@ void SysTraceStop()
|
||||
|
||||
void SysTraceWorker( void* ptr )
|
||||
{
|
||||
SetThreadName( "Tracy Profiler system trace" );
|
||||
ProcessTrace( &s_traceHandle2, 1, 0, 0 );
|
||||
ControlTrace( 0, KERNEL_LOGGER_NAME, s_prop, EVENT_TRACE_CONTROL_STOP );
|
||||
tracy_free( s_prop );
|
||||
|
||||
Reference in New Issue
Block a user