Documentation ¶
Index ¶
- type API
- func (service *API) LockProfile(_ *http.Request, args *Profile, reply *SuccessResponse) error
- func (service *API) MemoryProfile(_ *http.Request, args *Profile, reply *SuccessResponse) error
- func (service *API) StartCPUProfiler(_ *http.Request, args *Profile, reply *SuccessResponse) error
- func (service *API) StopCPUProfiler(_ *http.Request, _ *struct{}, reply *SuccessResponse) error
- type Performance
- type Profile
- type SuccessResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) LockProfile ¶
LockProfile runs a mutex profile writing to the specified file
func (*API) MemoryProfile ¶
MemoryProfile runs a memory profile writing to the specified file
func (*API) StartCPUProfiler ¶
StartCPUProfiler starts a cpu profile writing to the specified file
func (*API) StopCPUProfiler ¶
func (service *API) StopCPUProfiler(_ *http.Request, _ *struct{}, reply *SuccessResponse) error
StopCPUProfiler stops the cpu profile
type Performance ¶
type Performance struct {
// contains filtered or unexported fields
}
func (*Performance) LockProfile ¶
func (p *Performance) LockProfile(filePath string) error
LockProfile dumps the current lock statistics of this node
func (*Performance) MemoryProfile ¶
func (p *Performance) MemoryProfile(filePath string) error
MemoryProfile dumps the current memory utilization of this node
func (*Performance) StartCPUProfiler ¶
func (p *Performance) StartCPUProfiler(filePath string) error
StartCPUProfiler starts measuring the cpu utilization of this node
func (*Performance) StopCPUProfiler ¶
func (p *Performance) StopCPUProfiler() error
StopCPUProfiler stops measuring the cpu utilization of this node
type SuccessResponse ¶
type SuccessResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.