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-monitor
with the following command...dotnet-monitor collect --no-auth --urls http://localhost:52323
-
Update the environment variable
Controller__DotnetMonitorUrl
indocker-compose.yml
to pointdotnet-monitor-pprof-api
todotnet-monitor
. Make sure to update thepid
query parameter to point to the ID of the process you want to profile. -
Run
docker-compose up
and then navigate to http://localhost:3000