Documentation
¶
Index ¶
- Constants
- Variables
- func AddFloat64(addr *float64, val float64) (new float64)
- func LoadFloat64(addr *float64) float64
- func StoreFloat64(addr *float64, val float64)
- type APIRequest
- type Agent
- type AllocationReporter
- type BlockReporter
- type BlockValues
- type BreakdownNode
- type CPUReporter
- type Config
- type ConfigLoader
- type ErrorReporter
- type Measurement
- type Message
- type MessageQueue
- type Metric
- type ProcessReporter
- type ProfilerScheduler
- type SegmentReporter
Constants ¶
View Source
const AgentVersion = "2.0.1"
View Source
const CategoryBlockProfile string = "block-profile"
View Source
const CategoryCPU string = "cpu"
View Source
const CategoryCPUProfile string = "cpu-profile"
View Source
const CategoryErrorProfile string = "error-profile"
View Source
const CategoryGC string = "gc"
View Source
const CategoryHTTPTrace string = "http-trace"
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 CategorySegmentTrace string = "segment-trace"
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 TriggerAnomaly string = "anomaly"
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 ¶
func AddFloat64 ¶ added in v1.3.11
func LoadFloat64 ¶ added in v1.4.0
func StoreFloat64 ¶ added in v1.3.11
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
Debug bool
ProfileAgent bool
// contains filtered or unexported fields
}
func (*Agent) RecordError ¶ added in v1.2.0
func (*Agent) RecordSegment ¶ added in v1.1.2
type AllocationReporter ¶
type AllocationReporter struct {
// contains filtered or unexported fields
}
type BlockReporter ¶
type BlockReporter 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 CPUReporter ¶
type CPUReporter struct {
// contains filtered or unexported fields
}
type ConfigLoader ¶
type ConfigLoader struct {
// contains filtered or unexported fields
}
type ErrorReporter ¶ added in v1.2.0
type ErrorReporter struct {
// contains filtered or unexported fields
}
type Measurement ¶
type Measurement struct {
// contains filtered or unexported fields
}
type MessageQueue ¶
type MessageQueue struct {
// contains filtered or unexported fields
}
type ProcessReporter ¶
type ProcessReporter struct {
// contains filtered or unexported fields
}
type ProfilerScheduler ¶
type ProfilerScheduler struct {
// contains filtered or unexported fields
}
type SegmentReporter ¶ added in v1.1.2
type SegmentReporter struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.