Display sampling disabled message on debug log channel.

This commit is contained in:
Bartosz Taudul 2021-12-02 00:49:01 +01:00
parent 6579399bfd
commit 051b1ba8f5
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -936,6 +936,7 @@ static void SetupSampling( int64_t& samplingPeriod )
for( int j=0; j<s_numBuffers; j++ ) s_ring[j].~RingBuffer<RingBufSize>(); for( int j=0; j<s_numBuffers; j++ ) s_ring[j].~RingBuffer<RingBufSize>();
tracy_free_fast( s_ring ); tracy_free_fast( s_ring );
const char* err = "Tracy Profiler: sampling is disabled due to non-native scheduler clock. Are you running under a VM?"; const char* err = "Tracy Profiler: sampling is disabled due to non-native scheduler clock. Are you running under a VM?";
TracyDebug( err );
Profiler::MessageAppInfo( err, strlen( err ) ); Profiler::MessageAppInfo( err, strlen( err ) );
return; return;
} }