mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Add debugging for mutex, tracing (#6522)
This commit is contained in:
committed by
Nitish Tiwari
parent
20378821cf
commit
1111419d4a
@@ -226,6 +226,10 @@ func startProfiler(profilerType, dirPath string) (interface {
|
||||
profiler = profile.Start(profile.MemProfile, profile.NoShutdownHook, profile.ProfilePath(dirPath))
|
||||
case "block":
|
||||
profiler = profile.Start(profile.BlockProfile, profile.NoShutdownHook, profile.ProfilePath(dirPath))
|
||||
case "mutex":
|
||||
profiler = profile.Start(profile.MutexProfile, profile.NoShutdownHook, profile.ProfilePath(dirPath))
|
||||
case "trace":
|
||||
profiler = profile.Start(profile.TraceProfile, profile.NoShutdownHook, profile.ProfilePath(dirPath))
|
||||
default:
|
||||
return nil, errors.New("profiler type unknown")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user