mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -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
|
return buf.Bytes(), err
|
||||||
}
|
}
|
||||||
case madmin.ProfilerBlock:
|
case madmin.ProfilerBlock:
|
||||||
prof.recordBase("block", 0)
|
runtime.SetBlockProfileRate(100)
|
||||||
runtime.SetBlockProfileRate(1)
|
|
||||||
prof.stopFn = func() ([]byte, error) {
|
prof.stopFn = func() ([]byte, error) {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
err := pprof.Lookup("block").WriteTo(&buf, 0)
|
err := pprof.Lookup("block").WriteTo(&buf, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user