Class EventPipeProfiler
- Namespace
- BenchmarkDotNet.Diagnosers
- Assembly
- BenchmarkDotNet.dll
public class EventPipeProfiler : IDiagnoser
- Inheritance
-
EventPipeProfiler
- Implements
Constructors
EventPipeProfiler()
public EventPipeProfiler()
EventPipeProfiler(EventPipeProfile, IReadOnlyCollection<EventPipeProvider>?, bool)
Creates a new instance of EventPipeProfiler
public EventPipeProfiler(EventPipeProfile profile = EventPipeProfile.CpuSampling, IReadOnlyCollection<EventPipeProvider>? providers = null, bool performExtraBenchmarksRun = true)
Parameters
profile
EventPipeProfileA named pre-defined set of provider configurations that allows common tracing scenarios to be specified succinctly.
providers
IReadOnlyCollection<EventPipeProvider>A list of EventPipe providers to be enabled.
performExtraBenchmarksRun
boolif set to true, benchmarks will be executed one more time with the profiler attached. If set to false, there will be no extra run but the results will contain overhead. True by default.
Fields
Default
public static readonly EventPipeProfiler Default
Field Value
Properties
Analysers
public IEnumerable<IAnalyser> Analysers { get; }
Property Value
Exporters
public IEnumerable<IExporter> Exporters { get; }
Property Value
Ids
public IEnumerable<string> Ids { get; }
Property Value
ShortName
public string ShortName { get; }
Property Value
Methods
DisplayResults(ILogger)
public void DisplayResults(ILogger resultLogger)
Parameters
resultLogger
ILogger
GetRunMode(BenchmarkCase)
public RunMode GetRunMode(BenchmarkCase benchmarkCase)
Parameters
benchmarkCase
BenchmarkCase
Returns
Handle(HostSignal, DiagnoserActionParameters)
public void Handle(HostSignal signal, DiagnoserActionParameters parameters)
Parameters
signal
HostSignalparameters
DiagnoserActionParameters
ProcessResults(DiagnoserResults)
public IEnumerable<Metric> ProcessResults(DiagnoserResults results)
Parameters
results
DiagnoserResults
Returns
Validate(ValidationParameters)
public IEnumerable<ValidationError> Validate(ValidationParameters validationParameters)
Parameters
validationParameters
ValidationParameters