.NET is a free, cross-platform, open source developer platform for building many different types of applications.
Pyroscope Agent uses Diagnostic IPC Protocol client to communicate to .NET runtime and gather trace events. It is important to note that only managed code is accounted. Refer to dotnetdiag package for implementation details.
Supported .NET versions:
- .NET 5.0
- .NET Core 3.1
Running .NET profiler
- Linux / macOS
To start profiling a .NET application, add
pyroscope exec before the command. Run in PowerShell:
Or, if your application is an executable file:
You can also attach pyroscope to already running process using
On Windows, Pyroscope Agent runs as a Windows service (with
pyroscope agent command). Therefore if you are going
to continuously profile Windows services, you may find it handy to pre-define
targets in the configuration file
(by default, the configuration file path is
C:\Program Files\Pyroscope\Pyroscope Agent\agent.yml):
After the pyroscope configuration is changed, pyroscope service should be restarted for changes to take effect. Run in PowerShell as Administrator:
Refer to Configuration page to learn more about Pyroscop Agent and how to configure it.