diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 3971b1f4..20d4f0b0 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -203,6 +203,26 @@ static int64_t SetupHwTimer() sigaction( SIGILL, &oldact, nullptr ); GetTimeImpl = GetTimeImplCntvct; + + // Check if cntcvt is monotonic (there is faulty hw out there) + enum { NumProbes = 32 * 1024 }; + int64_t probe[NumProbes]; + for( int j=0; j<10; j++ ) + { + for( int i=0; i