mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Run sampling worker thread at max priority.
This commit is contained in:
parent
8383682306
commit
d99024dd02
@ -1111,7 +1111,7 @@ void SysTraceWorker( void* ptr )
|
|||||||
ThreadExitHandler threadExitHandler;
|
ThreadExitHandler threadExitHandler;
|
||||||
SetThreadName( "Tracy Sampling" );
|
SetThreadName( "Tracy Sampling" );
|
||||||
InitRpmalloc();
|
InitRpmalloc();
|
||||||
sched_param sp = { 5 };
|
sched_param sp = { 99 };
|
||||||
if( pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp ) != 0 ) TracyDebug( "Failed to increase SysTraceWorker thread priority!\n" );
|
if( pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp ) != 0 ) TracyDebug( "Failed to increase SysTraceWorker thread priority!\n" );
|
||||||
for( int i=0; i<s_numBuffers; i++ ) s_ring[i].Enable();
|
for( int i=0; i<s_numBuffers; i++ ) s_ring[i].Enable();
|
||||||
for(;;)
|
for(;;)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user