Versions in this module Expand all Collapse all v1 v1.0.0 Feb 28, 2024 Changes in this version + type Metrics struct + FCalls int + HeapSize int + InterpreterExecTime time.Duration + LexerExecTime time.Duration + MaxCpu int + MaxMem int + MinCpu int + MinMem int + ParserExecTime time.Duration + StackSize int + StartExecTime time.Time + StartInterpreterTime time.Time + StartLexerTime time.Time + StartParserTime time.Time + TotalExecTime time.Duration + func NewMetrics() *Metrics + func (m *Metrics) Measure() + func (m *Metrics) StartInterpreterTimer() + func (m *Metrics) StartLexerTimer() + func (m *Metrics) StartParserTimer() + func (m *Metrics) StartTimers() + func (m *Metrics) StopInterpreterTimer() + func (m *Metrics) StopLexerTimer() + func (m *Metrics) StopParserTimer() + func (m *Metrics) StopTotalTimer() + type MetricsReader interface + Read func([]metrics.Sample) + type MockMetricsReader struct + SamplesToReturn []metrics.Sample + func (mmr *MockMetricsReader) Read(samples []metrics.Sample)