Profiling endpoint fixes (#1707)

- Added support to download all profile tests
- profile.zip file was corrupted after download
- Add suspension warning
- Add Checkbox support
- Support for running multiple profiling types at the same time
- fix profiling test

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
This commit is contained in:
Lenin Alevski
2022-03-18 12:52:42 -07:00
committed by GitHub
parent 3a09361899
commit d7fef8d89e
11 changed files with 241 additions and 212 deletions

View File

@@ -2984,7 +2984,7 @@ func init() {
"/profiling/stop": {
"post": {
"produces": [
"application/octet-stream"
"application/zip"
],
"tags": [
"AdminAPI"
@@ -5519,18 +5519,6 @@ func init() {
}
}
},
"profilerType": {
"type": "string",
"enum": [
"cpu",
"mem",
"block",
"mutex",
"trace",
"threads",
"goroutines"
]
},
"profilingStartRequest": {
"type": "object",
"required": [
@@ -5538,7 +5526,7 @@ func init() {
],
"properties": {
"type": {
"$ref": "#/definitions/profilerType"
"type": "string"
}
}
},
@@ -9480,7 +9468,7 @@ func init() {
"/profiling/stop": {
"post": {
"produces": [
"application/octet-stream"
"application/zip"
],
"tags": [
"AdminAPI"
@@ -12141,18 +12129,6 @@ func init() {
}
}
},
"profilerType": {
"type": "string",
"enum": [
"cpu",
"mem",
"block",
"mutex",
"trace",
"threads",
"goroutines"
]
},
"profilingStartRequest": {
"type": "object",
"required": [
@@ -12160,7 +12136,7 @@ func init() {
],
"properties": {
"type": {
"$ref": "#/definitions/profilerType"
"type": "string"
}
}
},