If grafana-server binary is started with the -profile flag then tracing will create a trace.out file and pprof data can be accessed on the 6060 port. A custom port for pprof profiling can be set with the -profile-port flag.