{"modulePath":"github.com/stackimpact/stackimpact-go","version":"v2.3.10+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package internal\n\n## Constants\n\n```go\nconst AgentVersion = \"2.3.10\"\n```\n\n```go\nconst BreakdownTypeCallgraph string = \"callgraph\"\n```\n\n```go\nconst BreakdownTypeCallsite string = \"callsite\"\n```\n\n```go\nconst BreakdownTypeError string = \"error\"\n```\n\n```go\nconst CategoryBlockProfile string = \"block-profile\"\n```\n\n```go\nconst CategoryBlockTrace string = \"block-trace\"\n```\n\n```go\nconst CategoryCPU string = \"cpu\"\n```\n\n```go\nconst CategoryCPUProfile string = \"cpu-profile\"\n```\n\n```go\nconst CategoryCPUTrace string = \"cpu-trace\"\n```\n\n```go\nconst CategoryErrorProfile string = \"error-profile\"\n```\n\n```go\nconst CategoryGC string = \"gc\"\n```\n\n```go\nconst CategoryLockProfile string = \"lock-profile\"\n```\n\n```go\nconst CategoryMemory string = \"memory\"\n```\n\n```go\nconst CategoryMemoryProfile string = \"memory-profile\"\n```\n\n```go\nconst CategoryRuntime string = \"runtime\"\n```\n\n```go\nconst CategorySpan string = \"span\"\n```\n\n```go\nconst NameAllocated string = \"Allocated memory\"\n```\n\n```go\nconst NameBlockingCallTimes string = \"Blocking call times\"\n```\n\n```go\nconst NameCPUTime string = \"CPU time\"\n```\n\n```go\nconst NameCPUUsage string = \"CPU usage\"\n```\n\n```go\nconst NameCurrentRSS string = \"Current RSS\"\n```\n\n```go\nconst NameFrees string = \"Frees\"\n```\n\n```go\nconst NameGCCPUFraction string = \"GC CPU fraction\"\n```\n\n```go\nconst NameGCTotalPause string = \"GC total pause\"\n```\n\n```go\nconst NameHTTPTransactionBreakdown string = \"HTTP transaction breakdown\"\n```\n\n```go\nconst NameHeapAllocation string = \"Heap allocation\"\n```\n\n```go\nconst NameHeapIdle string = \"Heap idle\"\n```\n\n```go\nconst NameHeapInuse string = \"Heap non-idle\"\n```\n\n```go\nconst NameHeapObjects string = \"Heap objects\"\n```\n\n```go\nconst NameHeapReleased string = \"Heap released\"\n```\n\n```go\nconst NameHeapSys string = \"Heap obtained\"\n```\n\n```go\nconst NameLookups string = \"Lookups\"\n```\n\n```go\nconst NameMallocs string = \"Mallocs\"\n```\n\n```go\nconst NameMaxRSS string = \"Max RSS\"\n```\n\n```go\nconst NameNumCgoCalls string = \"Number of cgo calls\"\n```\n\n```go\nconst NameNumGC string = \"Number of GCs\"\n```\n\n```go\nconst NameNumGoroutines string = \"Number of goroutines\"\n```\n\n```go\nconst NameVMSize string = \"VM Size\"\n```\n\n```go\nconst ReservoirSize int = 1000\n```\n\n```go\nconst SAASDashboardAddress = \"https://agent-api.stackimpact.com\"\n```\n\n```go\nconst TriggerAPI string = \"api\"\n```\n\n```go\nconst TriggerTimer string = \"timer\"\n```\n\n```go\nconst TypeCounter string = \"counter\"\n```\n\n```go\nconst TypeProfile string = \"profile\"\n```\n\n```go\nconst TypeState string = \"state\"\n```\n\n```go\nconst TypeTrace string = \"trace\"\n```\n\n```go\nconst UnitByte string = \"byte\"\n```\n\n```go\nconst UnitKilobyte string = \"kilobyte\"\n```\n\n```go\nconst UnitMicrosecond string = \"microsecond\"\n```\n\n```go\nconst UnitMillisecond string = \"millisecond\"\n```\n\n```go\nconst UnitNanosecond string = \"nanosecond\"\n```\n\n```go\nconst UnitNone string = \"\"\n```\n\n```go\nconst UnitPercent string = \"percent\"\n```\n\n## Variables\n\n```go\nvar VmRSSRe = regexp.MustCompile(`VmRSS:\\s+(\\d+)\\s+kB`)\n```\n\n```go\nvar VmSizeRe = regexp.MustCompile(`VmSize:\\s+(\\d+)\\s+kB`)\n```\n\n## Types\n\n```go\ntype APIRequest struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Agent struct {\n\n\t// Options\n\tDashboardAddress string\n\tProxyAddress     string\n\tAgentKey         string\n\tAppName          string\n\tAppVersion       string\n\tAppEnvironment   string\n\tHostName         string\n\tAutoProfiling    bool\n\tDebug            bool\n\tLogger           *log.Logger\n\tProfileAgent     bool\n\tHTTPClient       *http.Client\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAgent() *Agent\n```\n\n```go\nfunc (a *Agent) Disable()\n```\n\n```go\nfunc (a *Agent) Enable()\n```\n\n```go\nfunc (a *Agent) RecordError(group string, msg interface{}, skipFrames int)\n```\n\n```go\nfunc (a *Agent) RecordSpan(name string, duration float64)\n```\n\n```go\nfunc (a *Agent) Report()\n```\n\n```go\nfunc (a *Agent) ReportAllocationProfile()\n```\n\n```go\nfunc (a *Agent) Start()\n```\n\n```go\nfunc (a *Agent) StartBlockProfiler()\n```\n\n```go\nfunc (a *Agent) StartCPUProfiler()\n```\n\n```go\nfunc (a *Agent) StartProfiling(workload string) bool\n```\n\n```go\nfunc (a *Agent) StopBlockProfiler()\n```\n\n```go\nfunc (a *Agent) StopCPUProfiler()\n```\n\n```go\nfunc (a *Agent) StopProfiling()\n```\n\n```go\ntype AllocationProfiler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BlockProfiler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BlockValues struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype BreakdownNode struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype CPUProfiler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Config struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ConfigLoader struct {\n\tLoadDelay    int64\n\tLoadInterval int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ErrorReporter struct {\n\tReportInterval int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Flag struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (f *Flag) IsSet() bool\n```\n\n```go\nfunc (f *Flag) Set()\n```\n\n```go\nfunc (f *Flag) SetIfUnset() bool\n```\n\n```go\nfunc (f *Flag) Unset()\n```\n\n```go\nfunc (f *Flag) UnsetIfSet() bool\n```\n\n```go\ntype Measurement struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Message struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype MessageQueue struct {\n\tMessageTTL    int64\n\tFlushInterval int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Metric struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProcessReporter struct {\n\tReportInterval int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProfileData struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ProfileDataSorter []*ProfileData\n```\n\n```go\nfunc (pds ProfileDataSorter) Len() int\n```\n\n```go\nfunc (pds ProfileDataSorter) Less(i, j int) bool\n```\n\n```go\nfunc (pds ProfileDataSorter) Swap(i, j int)\n```\n\n```go\ntype ProfileReporter struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Profiler interface {\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype ProfilerConfig struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Reservoir []uint64\n```\n\n```go\nfunc (r Reservoir) Len() int\n```\n\n```go\nfunc (r Reservoir) Less(i, j int) bool\n```\n\n```go\nfunc (r Reservoir) Swap(i, j int)\n```\n\n```go\ntype SpanReporter struct {\n\tReportInterval int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Timer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTimer(agent *Agent, delay time.Duration, interval time.Duration, job func()) *Timer\n```\n\n```go\nfunc (t *Timer) Stop()\n```\n\n","path":"github.com/stackimpact/stackimpact-go/internal","name":"internal","synopsis":"","isRedistributable":true}
