mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
Block profiling tweaks (#11612)
The base profiles contains no valuable data, don't record them. Reduce block rate by 2 orders of magnitude, should still capture just as valuable data with less CPU strain.
This commit is contained in:
parent
b690304eed
commit
c5b3a675fa
@ -322,8 +322,7 @@ func startProfiler(profilerType string) (minioProfiler, error) {
|
||||
return buf.Bytes(), err
|
||||
}
|
||||
case madmin.ProfilerBlock:
|
||||
prof.recordBase("block", 0)
|
||||
runtime.SetBlockProfileRate(1)
|
||||
runtime.SetBlockProfileRate(100)
|
||||
prof.stopFn = func() ([]byte, error) {
|
||||
var buf bytes.Buffer
|
||||
err := pprof.Lookup("block").WriteTo(&buf, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user