Documentation ¶ Index ¶ func Add(c Count, delta int) func AddResult(s severity.Severity) func CountSeverity(sev severity.Severity) int func CountSummary() map[Count]int func TimerSummary() map[Operation]time.Duration type Count type Operation type Timer func Start(op Operation) *Timer func (t *Timer) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Add ¶ func Add(c Count, delta int) func AddResult ¶ added in v0.47.0 func AddResult(s severity.Severity) func CountSeverity ¶ added in v0.47.0 func CountSeverity(sev severity.Severity) 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" 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() Source Files ¶ View all Source files metrics.go Click to show internal directories. Click to hide internal directories.