Documentation ¶
Index ¶
- Constants
- Variables
- type APIRequest
- type Agent
- func (a *Agent) Disable()
- func (a *Agent) Enable()
- func (a *Agent) RecordError(group string, msg interface{}, skipFrames int)
- func (a *Agent) RecordSpan(name string, duration float64)
- func (a *Agent) Report()
- func (a *Agent) ReportAllocationProfile()
- func (a *Agent) Start()
- func (a *Agent) StartBlockProfiler()
- func (a *Agent) StartCPUProfiler()
- func (a *Agent) StartProfiling(workload string) bool
- func (a *Agent) StopBlockProfiler()
- func (a *Agent) StopCPUProfiler()
- func (a *Agent) StopProfiling()
- type AllocationProfiler
- type BlockProfiler
- type BlockValues
- type BreakdownNode
- type CPUProfiler
- type Config
- type ConfigLoader
- type ErrorReporter
- type Flag
- type Measurement
- type Message
- type MessageQueue
- type Metric
- type ProcessReporter
- type ProfileData
- type ProfileDataSorter
- type ProfileReporter
- type Profiler
- type ProfilerConfig
- type Reservoir
- type SpanReporter
- type Timer
Constants ¶
View Source
const AgentVersion = "2.3.10"
View Source
const BreakdownTypeCallgraph string = "callgraph"
View Source
const BreakdownTypeCallsite string = "callsite"
View Source
const BreakdownTypeError string = "error"
View Source
const CategoryBlockProfile string = "block-profile"
View Source
const CategoryBlockTrace string = "block-trace"
View Source
const CategoryCPU string = "cpu"
View Source
const CategoryCPUProfile string = "cpu-profile"
View Source
const CategoryCPUTrace string = "cpu-trace"
View Source
const CategoryErrorProfile string = "error-profile"
View Source
const CategoryGC string = "gc"
View Source
const CategoryLockProfile string = "lock-profile"
View Source
const CategoryMemory string = "memory"
View Source
const CategoryMemoryProfile string = "memory-profile"
View Source
const CategoryRuntime string = "runtime"
View Source
const CategorySpan string = "span"
View Source
const NameAllocated string = "Allocated memory"
View Source
const NameBlockingCallTimes string = "Blocking call times"
View Source
const NameCPUTime string = "CPU time"
View Source
const NameCPUUsage string = "CPU usage"
View Source
const NameCurrentRSS string = "Current RSS"
View Source
const NameFrees string = "Frees"
View Source
const NameGCCPUFraction string = "GC CPU fraction"
View Source
const NameGCTotalPause string = "GC total pause"
View Source
const NameHTTPTransactionBreakdown string = "HTTP transaction breakdown"
View Source
const NameHeapAllocation string = "Heap allocation"
View Source
const NameHeapIdle string = "Heap idle"
View Source
const NameHeapInuse string = "Heap non-idle"
View Source
const NameHeapObjects string = "Heap objects"
View Source
const NameHeapReleased string = "Heap released"
View Source
const NameHeapSys string = "Heap obtained"
View Source
const NameLookups string = "Lookups"
View Source
const NameMallocs string = "Mallocs"
View Source
const NameMaxRSS string = "Max RSS"
View Source
const NameNumCgoCalls string = "Number of cgo calls"
View Source
const NameNumGC string = "Number of GCs"
View Source
const NameNumGoroutines string = "Number of goroutines"
View Source
const NameVMSize string = "VM Size"
View Source
const ReservoirSize int = 1000
View Source
const SAASDashboardAddress = "https://agent-api.stackimpact.com"
View Source
const TriggerAPI string = "api"
View Source
const TriggerTimer string = "timer"
View Source
const TypeCounter string = "counter"
View Source
const TypeProfile string = "profile"
View Source
const TypeState string = "state"
View Source
const TypeTrace string = "trace"
View Source
const UnitByte string = "byte"
View Source
const UnitKilobyte string = "kilobyte"
View Source
const UnitMicrosecond string = "microsecond"
View Source
const UnitMillisecond string = "millisecond"
View Source
const UnitNanosecond string = "nanosecond"
View Source
const UnitNone string = ""
View Source
const UnitPercent string = "percent"
Variables ¶
View Source
var VmRSSRe = regexp.MustCompile(`VmRSS:\s+(\d+)\s+kB`)
View Source
var VmSizeRe = regexp.MustCompile(`VmSize:\s+(\d+)\s+kB`)
Functions ¶
This section is empty.
Types ¶
type APIRequest ¶
type APIRequest struct {
// contains filtered or unexported fields
}
type Agent ¶
type Agent struct { // Options DashboardAddress string ProxyAddress string AgentKey string AppName string AppVersion string AppEnvironment string HostName string AutoProfiling bool Debug bool Logger *log.Logger ProfileAgent bool HTTPClient *http.Client // contains filtered or unexported fields }
func (*Agent) RecordError ¶ added in v1.2.0
func (*Agent) RecordSpan ¶
func (*Agent) ReportAllocationProfile ¶
func (a *Agent) ReportAllocationProfile()
func (*Agent) StartBlockProfiler ¶
func (a *Agent) StartBlockProfiler()
func (*Agent) StartCPUProfiler ¶
func (a *Agent) StartCPUProfiler()
func (*Agent) StartProfiling ¶
func (*Agent) StopBlockProfiler ¶
func (a *Agent) StopBlockProfiler()
func (*Agent) StopCPUProfiler ¶
func (a *Agent) StopCPUProfiler()
func (*Agent) StopProfiling ¶
func (a *Agent) StopProfiling()
type AllocationProfiler ¶
type AllocationProfiler struct {
// contains filtered or unexported fields
}
type BlockProfiler ¶
type BlockProfiler struct {
// contains filtered or unexported fields
}
type BlockValues ¶
type BlockValues struct {
// contains filtered or unexported fields
}
type BreakdownNode ¶
type BreakdownNode struct {
// contains filtered or unexported fields
}
type CPUProfiler ¶
type CPUProfiler struct {
// contains filtered or unexported fields
}
type ConfigLoader ¶
type ErrorReporter ¶ added in v1.2.0
type ErrorReporter struct { ReportInterval int64 // contains filtered or unexported fields }
type Flag ¶
type Flag struct {
// contains filtered or unexported fields
}
func (*Flag) SetIfUnset ¶
func (*Flag) UnsetIfSet ¶
type Measurement ¶
type Measurement struct {
// contains filtered or unexported fields
}
type MessageQueue ¶
type ProcessReporter ¶
type ProcessReporter struct { ReportInterval int64 // contains filtered or unexported fields }
type ProfileData ¶
type ProfileData struct {
// contains filtered or unexported fields
}
type ProfileDataSorter ¶
type ProfileDataSorter []*ProfileData
func (ProfileDataSorter) Len ¶
func (pds ProfileDataSorter) Len() int
func (ProfileDataSorter) Less ¶
func (pds ProfileDataSorter) Less(i, j int) bool
func (ProfileDataSorter) Swap ¶
func (pds ProfileDataSorter) Swap(i, j int)
type ProfileReporter ¶
type ProfileReporter struct {
// contains filtered or unexported fields
}
type ProfilerConfig ¶
type ProfilerConfig struct {
// contains filtered or unexported fields
}
type SpanReporter ¶
type SpanReporter struct { ReportInterval int64 // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.