Use maximum possible sampling rate.

This commit is contained in:
Bartosz Taudul 2020-02-22 19:08:15 +01:00
parent 4273939cf5
commit d0930e9053

View File

@ -188,7 +188,7 @@ bool SysTraceStart()
if( isOs64Bit )
{
TRACE_PROFILE_INTERVAL interval = {};
interval.Interval = 10000;
interval.Interval = 1250; // 8 kHz
const auto intervalStatus = TraceSetInformation( 0, TraceSampledProfileIntervalInfo, &interval, sizeof( interval ) );
if( intervalStatus != ERROR_SUCCESS ) return false;
}