mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Notify when software sampling setup has failed.
This commit is contained in:
parent
4c0dd704d8
commit
2ef014608f
@ -859,7 +859,11 @@ bool SysTraceStart( int64_t& samplingPeriod )
|
||||
pe.exclude_kernel = 1;
|
||||
ProbePreciseIp( pe, currentPid );
|
||||
fd = perf_event_open( &pe, currentPid, i, -1, PERF_FLAG_FD_CLOEXEC );
|
||||
if( fd == -1 ) break;
|
||||
if( fd == -1 )
|
||||
{
|
||||
TracyDebug( " Failed to setup!\n");
|
||||
break;
|
||||
}
|
||||
TracyDebug( " No access to kernel samples\n" );
|
||||
}
|
||||
new( s_ring+s_numBuffers ) RingBuffer( 64*1024, fd, EventCallstack );
|
||||
|
Loading…
Reference in New Issue
Block a user