Profiling: Enhance configuration and docs (#90048)

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
This commit is contained in:
Marcus Efraimsson
2024-07-09 17:48:16 +02:00
committed by GitHub
parent 8a6e92c0c9
commit fc8a5cf468
9 changed files with 160 additions and 51 deletions

View File

@ -77,7 +77,7 @@ func RunServer(opts ServerOptions) error {
}
}()
if err := setupProfiling(Profile, ProfileAddr, ProfilePort); err != nil {
if err := setupProfiling(Profile, ProfileAddr, ProfilePort, ProfileBlockRate, ProfileMutexFraction); err != nil {
return err
}
if err := setupTracing(Tracing, TracingFile, logger); err != nil {