void PerfInfoCollectionStart(SampledProfileIntervalTraceData ev) { if (ev.SampleSource == _profileSource) { _interval = ev.NewInterval; } }
private void OnPmcIntervalChange(SampledProfileIntervalTraceData data) { if (profileSourceIdToInterval.TryGetValue(data.SampleSource, out int storedInterval) && storedInterval != data.NewInterval) { throw new NotSupportedException("Sampling interval change is not supported!"); } profileSourceIdToInterval[data.SampleSource] = data.NewInterval; }
private void PerfInfoCollectionStart(SampledProfileIntervalTraceData ev) { if (ev.SampleSource == _profileSource) _interval = ev.NewInterval; }