mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
ETW threads are time critical.
This commit is contained in:
parent
fee89412ed
commit
f07eebebf7
@ -322,6 +322,7 @@ static void SetupVsync()
|
|||||||
s_threadVsync = (Thread*)tracy_malloc( sizeof( Thread ) );
|
s_threadVsync = (Thread*)tracy_malloc( sizeof( Thread ) );
|
||||||
new(s_threadVsync) Thread( [] (void*) {
|
new(s_threadVsync) Thread( [] (void*) {
|
||||||
ThreadExitHandler threadExitHandler;
|
ThreadExitHandler threadExitHandler;
|
||||||
|
SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL );
|
||||||
SetThreadName( "Tracy Vsync" );
|
SetThreadName( "Tracy Vsync" );
|
||||||
ProcessTrace( &s_traceHandleVsync2, 1, nullptr, nullptr );
|
ProcessTrace( &s_traceHandleVsync2, 1, nullptr, nullptr );
|
||||||
}, nullptr );
|
}, nullptr );
|
||||||
@ -457,6 +458,7 @@ void SysTraceStop()
|
|||||||
void SysTraceWorker( void* ptr )
|
void SysTraceWorker( void* ptr )
|
||||||
{
|
{
|
||||||
ThreadExitHandler threadExitHandler;
|
ThreadExitHandler threadExitHandler;
|
||||||
|
SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL );
|
||||||
SetThreadName( "Tracy SysTrace" );
|
SetThreadName( "Tracy SysTrace" );
|
||||||
ProcessTrace( &s_traceHandle2, 1, 0, 0 );
|
ProcessTrace( &s_traceHandle2, 1, 0, 0 );
|
||||||
ControlTrace( 0, KERNEL_LOGGER_NAME, s_prop, EVENT_TRACE_CONTROL_STOP );
|
ControlTrace( 0, KERNEL_LOGGER_NAME, s_prop, EVENT_TRACE_CONTROL_STOP );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user