Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add settings for cpu/mutex/block profiling options #13278

Merged
merged 1 commit into from
Jun 21, 2024

Commits on Jun 21, 2024

  1. feat: Add settings for cpu/mutex/block profiling options

    The HTTP endpoints for scraping CPU, mutex and block profiles are
    already exposed by the server, however, block and mutex profiling must
    be explicitly enabled by setting a non-zero value for
    `SetBlockProfileRate` and `SetMutexProfileFraction` respectively.
    
    For more information about the available options consult the Go
    documentation:
    
    * https://pkg.go.dev/runtime#SetBlockProfileRate
    * https://pkg.go.dev/runtime#SetMutexProfileFraction
    * https://pkg.go.dev/runtime#SetCPUProfileRate
    
    Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
    chaudum committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    8f1bec3 View commit details
    Browse the repository at this point in the history