This is a small wrapper around the dotnet-monitor tool which converts the .nettrace profiling information it outputs into the pprof format.
It currently only works with CPU profiling, though additional profiling may be added in the future.
A docker-compose.yml file is included which can be used to launch this tool, along with Grafana and Grafana Phlare. To run it locally, you will need to launch dotnet-monitor and the program you wish to collect profiling information from.
-
Launch
dotnet-monitorwith the following command...dotnet-monitor collect --no-auth --urls http://localhost:52323 -
Update the environment variable
Controller__DotnetMonitorUrlindocker-compose.ymlto pointdotnet-monitor-pprof-apitodotnet-monitor. Make sure to update thepidquery parameter to point to the ID of the process you want to profile. -
Run
docker-compose upand then navigate to http://localhost:3000