Documentation ¶
Overview ¶
Package test provides integration testing for the whole log agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBenchmarkAgent ¶
RunBenchmarkAgent benchmarks a fully configured agent outputting to file or null
Types ¶
type CostReport ¶
type CostReport struct { RealTime time.Duration UserTime time.Duration SystemTime time.Duration NumHeapAllocs uint64 GCCPUFraction float64 }
CostReport contains measurements since .Start()
type CostTracker ¶
type CostTracker struct {
// contains filtered or unexported fields
}
CostTracker tracks CPU usage and memory allocations
func StartCostTracking ¶
func StartCostTracking() *CostTracker
StartCostTracking creates a cost tracker and starts tracking
func (*CostTracker) Report ¶
func (ct *CostTracker) Report() CostReport
Report reports measurements since .Start() was called
Click to show internal directories.
Click to hide internal directories.