test

package
v0.0.0-...-d14a738 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 24 Imported by: 0

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

func RunBenchmarkAgent(inputPath string, outputPathPattern string, repeat int, configFile string)

RunBenchmarkAgent benchmarks a fully configured agent outputting to file or null

func RunBenchmarkPipeline

func RunBenchmarkPipeline(inputPath string, outputPathPattern string, repeat int, configFile string)

RunBenchmarkPipeline benchmarks a workerless pipeline

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL