rpc

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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 NewAPI

func NewAPI(log logging.Logger) *API

func (*API) LockProfile

func (service *API) LockProfile(_ *http.Request, args *Profile, reply *SuccessResponse) error

LockProfile runs a mutex profile writing to the specified file

func (*API) MemoryProfile

func (service *API) MemoryProfile(_ *http.Request, args *Profile, reply *SuccessResponse) error

MemoryProfile runs a memory profile writing to the specified file

func (*API) StartCPUProfiler

func (service *API) StartCPUProfiler(_ *http.Request, args *Profile, reply *SuccessResponse) error

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 Profile

type Profile struct {
	File string `json:"file"`
}

type SuccessResponse

type SuccessResponse struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL