Back to Benchmarkdotnet

EventPipeProfiler

docs/articles/features/event-pipe-profiler.md

0.15.81.0 KB
Original Source

EventPipeProfiler

EventPipeProfiler is a cross-platform profiler that allows profile .NET code on every platform - Windows, Linux, macOS. Collected data are exported to trace files (.speedscope.json and .nettrace) which can be analyzed using SpeedScope, PerfView, and Visual Studio Profiler. This new profiler is available from the 0.12.1 version.

Configuration

EventPipeProfiler can be enabled in three ways:

  1. Using parameter -p EP or --profiler EP from the console line.
  2. Marking the benchmarked class with [EventPipeProfiler(...)] attribute. You can find an example below.
  3. Using a custom configuration. You can find an example below.

[!includeIntroEventPipeProfiler] [!includeIntroEventPipeProfilerAdvanced]