1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00

Add admin profiling command (#2557)

Implement profiling command to start & download profiling data of
a standalone or all nodes of a cluster.

```
1. Start CPU profiling
   $ mc admin profiling start --type "cpu" myminio/

2. Download latest profiling data under save under profiling.zip
   $ mc admin profiling stop myminio/
```
This commit is contained in:
Anis Elleuch
2018-10-18 01:06:12 +01:00
committed by kannappanr
parent c707a17f30
commit 0dd32c1b26
7 changed files with 300 additions and 72 deletions

View File

@@ -45,6 +45,10 @@ func fatalIf(err *probe.Error, msg string, data ...interface{}) {
if err == nil {
return
}
fatal(err, msg, data...)
}
func fatal(err *probe.Error, msg string, data ...interface{}) {
if globalJSON {
errorMsg := errorMessage{
Message: msg,