-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/trace/api: add an endpoint to enable block profiling (#3429)
This change adds a new endpoint `/debug/blockrate` which automatically calls `runtime.SetBlockProfileRate(v)` where `v` is an optional query string defaulting to 10000 (1 sample for every 10μs blocked). The block profile rate is reset to 0 once `/debug/pprof/block` is called.
- Loading branch information
Showing
1 changed file
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters