Documentation ¶
Index ¶
- type Agent
- type Option
- type ReceiveProfileReq
- type Setter
- func WithAllocsProfiling(en bool) Setter
- func WithBlockProfiling(en bool) Setter
- func WithBreakPeriod(d time.Duration) Setter
- func WithCPUProfiling(en bool, d time.Duration) Setter
- func WithCollectorAddr(addr string) Setter
- func WithGoroutineProfiling(en bool) Setter
- func WithHeapProfiling(en bool) Setter
- func WithMutexProfiling(en bool) Setter
- func WithService(service string, serviceVersion string) Setter
- func WithThreadCreateProfiling(en bool) Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { CollectorAddr string Service string ServiceVersion string BreakPeriod time.Duration CPUProfiling bool `profile:"cpu"` CPUProfilingPeriod time.Duration HeapProfiling bool `profile:"heap"` AllocsProfiling bool `profile:"allocs"` BlockProfiling bool `profile:"block"` MutexProfiling bool `profile:"mutex"` GoroutineProfiling bool `profile:"goroutine"` ThreadCreateProfiling bool `profile:"threadcreate"` // contains filtered or unexported fields }
type ReceiveProfileReq ¶
type ReceiveProfileReq struct { Service string `json:"service"` ServiceVersion string `json:"service_version"` Host string `json:"host"` GoVersion string `json:"go_version"` ProfileType string `json:"profile_type"` Profile string `json:"profile"` SendTime int64 `json:"send_time"` CreateTime int64 `json:"create_time"` }
type Setter ¶
func WithAllocsProfiling ¶ added in v0.1.3
func WithBlockProfiling ¶ added in v0.1.3
func WithBreakPeriod ¶ added in v0.1.5
func WithCollectorAddr ¶
func WithGoroutineProfiling ¶ added in v0.1.3
func WithHeapProfiling ¶ added in v0.1.3
func WithMutexProfiling ¶ added in v0.1.3
func WithService ¶
func WithThreadCreateProfiling ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.