From 52d7707cfc8c13dd63d75d9720c62abfdb20d370 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 24 Aug 2022 14:41:11 +0200 Subject: [PATCH] set TreatWarningsAsErrors to true (#1897) * set TreatWarningsAsErrors to true to ensure that no new warnings are being added * solve the only warning we have --- build/common.props | 1 + src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/build/common.props b/build/common.props index 3b83747c49..5c67c15839 100644 --- a/build/common.props +++ b/build/common.props @@ -18,6 +18,7 @@ false True $(MSBuildThisFileDirectory)CodingStyle.ruleset + true diff --git a/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs b/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs index f7a7ce9103..967dcc2d03 100644 --- a/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs +++ b/src/BenchmarkDotNet.Diagnostics.Windows/EtwProfilerConfig.cs @@ -18,6 +18,7 @@ public class EtwProfilerConfig public float CpuSampleIntervalInMilliseconds { get; } public KernelTraceEventParser.Keywords KernelKeywords { get; } + public KernelTraceEventParser.Keywords KernelStackKeywords { get; } public IReadOnlyDictionary> IntervalSelectors { get; } @@ -31,6 +32,7 @@ public class EtwProfilerConfig /// The rate at which CPU samples are collected. By default this is 1 (once a millisecond per CPU). There is a lower bound on this (typically 0.125 ms) /// interval per hardware counter, if not provided then default values will be used. /// kernel session keywords, ImageLoad (for native stack frames) and Profile (for CPU Stacks) are the defaults + /// This is passed to TraceEventSession.EnableKernelProvider to enable particular sets of events. See https://docs.microsoft.com/windows/win32/api/evntrace/ns-evntrace-event_trace_properties#members for more information on them. /// providers that should be enabled, if not provided then default values will be used /// value indicating whether to create heap session. False by default, used internally by NativeMemoryProfiler. public EtwProfilerConfig(