mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 16:13:59 +08:00
31 lines
895 B
Go
31 lines
895 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type RuntimeDiagnosticsSummary struct {
|
|
RSS uint64 `json:"rss"`
|
|
HeapAlloc uint64 `json:"heapAlloc"`
|
|
HeapObjects uint64 `json:"heapObjects"`
|
|
Goroutines int `json:"goroutines"`
|
|
}
|
|
|
|
type RuntimeGoroutineGroup struct {
|
|
State string `json:"state"`
|
|
Top string `json:"top"`
|
|
Count int `json:"count"`
|
|
Stack []string `json:"stack"`
|
|
}
|
|
|
|
type RuntimeGoroutineSnapshot struct {
|
|
Total int `json:"total"`
|
|
GroupCount int `json:"groupCount"`
|
|
Truncated bool `json:"truncated"`
|
|
CapturedAt time.Time `json:"capturedAt"`
|
|
Goroutines []RuntimeGoroutineGroup `json:"goroutines"`
|
|
}
|
|
|
|
type RuntimeProfileCreate struct {
|
|
Type string `json:"type" validate:"required,oneof=cpu heap goroutine mutex block"`
|
|
Duration int `json:"duration" validate:"omitempty,min=5,max=30"`
|
|
}
|