metrics

package
v0.45.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(c Count, delta int)

func CountSummary

func CountSummary() map[Count]int

func TimerSummary

func TimerSummary() map[Operation]time.Duration

Types

type Count

type Count string
const (
	ModuleLoadCount    Count = "modules"
	BlocksLoaded       Count = "blocks"
	ModuleBlocksLoaded Count = "module blocks"
	BlocksEvaluated    Count = "evaluated blocks"
	FilesLoaded        Count = "files loaded"
	IgnoredChecks      Count = "ignored checks"
)

type Operation

type Operation string
const (
	DiskIO     Operation = "disk i/o"
	HCLParse   Operation = "parsing HCL"
	Evaluation Operation = "evaluating values"
	Check      Operation = "running checks"
)

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

func Start

func Start(op Operation) *Timer

func (*Timer) Stop

func (t *Timer) Stop()

Jump to

Keyboard shortcuts

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