metrics

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package metrics implements a simple metrics mechanism for gathering, reporting and aggregating metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Summarize

func Summarize(f io.Reader, loggingfFn LoggingfFn) error

Summarize reads a log file, selects multiple metrics from multiple generate calls, and summarizes the metrics

Types

type IsLoggingFn

type IsLoggingFn func() bool

IsLoggingFn is the function that determines if logging is on

type LoggingfFn

type LoggingfFn func(format string, args ...interface{})

LoggingfFn is the logging function to output finalized metrics

type Metrics

type Metrics interface {
	ASTPkgCacheHitsInc()
	ASTPkgCacheMissesInc()
	ASTTotalLoadTimeInc(d time.Duration)
	ASTTotalDecorationTimeInc(d time.Duration)

	TotalProcessingTimeInc(d time.Duration)

	Finalize()
}

Metrics is the interface to the metrics system

type MoqMetrics

MoqMetrics holds the state of a moq of the Metrics type

func NewMoqMetrics

func NewMoqMetrics(scene *moq.Scene, config *moq.Config) *MoqMetrics

NewMoqMetrics creates a new moq of the Metrics type

func (*MoqMetrics) AssertExpectationsMet

func (m *MoqMetrics) AssertExpectationsMet()

AssertExpectationsMet asserts that all expectations have been met

func (*MoqMetrics) Mock

func (m *MoqMetrics) Mock() *MoqMetrics_mock

Mock returns the mock implementation of the Metrics type

func (*MoqMetrics) OnCall

func (m *MoqMetrics) OnCall() *MoqMetrics_recorder

OnCall returns the recorder implementation of the Metrics type

func (*MoqMetrics) Reset

func (m *MoqMetrics) Reset()

Reset resets the state of the moq

type MoqMetrics_ASTPkgCacheHitsInc_adaptor added in v0.28.0

type MoqMetrics_ASTPkgCacheHitsInc_adaptor struct {
	Moq *MoqMetrics
}

MoqMetrics_ASTPkgCacheHitsInc_adaptor adapts MoqMetrics as needed by the runtime

func (*MoqMetrics_ASTPkgCacheHitsInc_adaptor) ParamsKey added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_adaptor) PrettyParams added in v0.28.0

type MoqMetrics_ASTPkgCacheHitsInc_anyParams

type MoqMetrics_ASTPkgCacheHitsInc_anyParams struct {
	Recorder *MoqMetrics_ASTPkgCacheHitsInc_recorder
}

MoqMetrics_ASTPkgCacheHitsInc_anyParams isolates the any params functions of the Metrics type

type MoqMetrics_ASTPkgCacheHitsInc_doFn

type MoqMetrics_ASTPkgCacheHitsInc_doFn func()

MoqMetrics_ASTPkgCacheHitsInc_doFn defines the type of function needed when calling AndDo for the Metrics type

type MoqMetrics_ASTPkgCacheHitsInc_doReturnFn

type MoqMetrics_ASTPkgCacheHitsInc_doReturnFn func()

MoqMetrics_ASTPkgCacheHitsInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type

type MoqMetrics_ASTPkgCacheHitsInc_paramIndexing added in v0.28.0

type MoqMetrics_ASTPkgCacheHitsInc_paramIndexing struct{}

MoqMetrics_ASTPkgCacheHitsInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type

type MoqMetrics_ASTPkgCacheHitsInc_params

type MoqMetrics_ASTPkgCacheHitsInc_params struct{}

MoqMetrics_ASTPkgCacheHitsInc_params holds the params of the Metrics type

type MoqMetrics_ASTPkgCacheHitsInc_paramsKey

type MoqMetrics_ASTPkgCacheHitsInc_paramsKey struct {
	Params struct{}
	Hashes struct{}
}

MoqMetrics_ASTPkgCacheHitsInc_paramsKey holds the map key params of the Metrics type

type MoqMetrics_ASTPkgCacheHitsInc_recorder added in v0.28.0

MoqMetrics_ASTPkgCacheHitsInc_recorder routes recorded function calls to the MoqMetrics moq

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) AndDo added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) Any added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) DoReturnResults added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) NoSeq added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) Repeat added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) ReturnResults added in v0.28.0

func (*MoqMetrics_ASTPkgCacheHitsInc_recorder) Seq added in v0.28.0

type MoqMetrics_ASTPkgCacheHitsInc_results

type MoqMetrics_ASTPkgCacheHitsInc_results struct{}

MoqMetrics_ASTPkgCacheHitsInc_results holds the results of the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_adaptor added in v0.28.0

type MoqMetrics_ASTPkgCacheMissesInc_adaptor struct {
	Moq *MoqMetrics
}

MoqMetrics_ASTPkgCacheMissesInc_adaptor adapts MoqMetrics as needed by the runtime

func (*MoqMetrics_ASTPkgCacheMissesInc_adaptor) ParamsKey added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_adaptor) PrettyParams added in v0.28.0

type MoqMetrics_ASTPkgCacheMissesInc_anyParams

type MoqMetrics_ASTPkgCacheMissesInc_anyParams struct {
	Recorder *MoqMetrics_ASTPkgCacheMissesInc_recorder
}

MoqMetrics_ASTPkgCacheMissesInc_anyParams isolates the any params functions of the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_doFn

type MoqMetrics_ASTPkgCacheMissesInc_doFn func()

MoqMetrics_ASTPkgCacheMissesInc_doFn defines the type of function needed when calling AndDo for the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_doReturnFn

type MoqMetrics_ASTPkgCacheMissesInc_doReturnFn func()

MoqMetrics_ASTPkgCacheMissesInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_paramIndexing added in v0.28.0

type MoqMetrics_ASTPkgCacheMissesInc_paramIndexing struct{}

MoqMetrics_ASTPkgCacheMissesInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_params

type MoqMetrics_ASTPkgCacheMissesInc_params struct{}

MoqMetrics_ASTPkgCacheMissesInc_params holds the params of the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_paramsKey

type MoqMetrics_ASTPkgCacheMissesInc_paramsKey struct {
	Params struct{}
	Hashes struct{}
}

MoqMetrics_ASTPkgCacheMissesInc_paramsKey holds the map key params of the Metrics type

type MoqMetrics_ASTPkgCacheMissesInc_recorder added in v0.28.0

MoqMetrics_ASTPkgCacheMissesInc_recorder routes recorded function calls to the MoqMetrics moq

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) AndDo added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) Any added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) DoReturnResults added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) NoSeq added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) Repeat added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) ReturnResults added in v0.28.0

func (*MoqMetrics_ASTPkgCacheMissesInc_recorder) Seq added in v0.28.0

type MoqMetrics_ASTPkgCacheMissesInc_results

type MoqMetrics_ASTPkgCacheMissesInc_results struct{}

MoqMetrics_ASTPkgCacheMissesInc_results holds the results of the Metrics type

type MoqMetrics_ASTTotalDecorationTimeInc_adaptor added in v0.28.0

type MoqMetrics_ASTTotalDecorationTimeInc_adaptor struct {
	Moq *MoqMetrics
}

MoqMetrics_ASTTotalDecorationTimeInc_adaptor adapts MoqMetrics as needed by the runtime

func (*MoqMetrics_ASTTotalDecorationTimeInc_adaptor) ParamsKey added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_adaptor) PrettyParams added in v0.28.0

type MoqMetrics_ASTTotalDecorationTimeInc_anyParams

type MoqMetrics_ASTTotalDecorationTimeInc_anyParams struct {
	Recorder *MoqMetrics_ASTTotalDecorationTimeInc_recorder
}

MoqMetrics_ASTTotalDecorationTimeInc_anyParams isolates the any params functions of the Metrics type

func (*MoqMetrics_ASTTotalDecorationTimeInc_anyParams) D

type MoqMetrics_ASTTotalDecorationTimeInc_doFn

type MoqMetrics_ASTTotalDecorationTimeInc_doFn func(d time.Duration)

MoqMetrics_ASTTotalDecorationTimeInc_doFn defines the type of function needed when calling AndDo for the Metrics type

type MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn

type MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn func(d time.Duration)

MoqMetrics_ASTTotalDecorationTimeInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type

type MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing added in v0.28.0

type MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing struct {
	D moq.ParamIndexing
}

MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type

type MoqMetrics_ASTTotalDecorationTimeInc_params

type MoqMetrics_ASTTotalDecorationTimeInc_params struct{ D time.Duration }

MoqMetrics_ASTTotalDecorationTimeInc_params holds the params of the Metrics type

type MoqMetrics_ASTTotalDecorationTimeInc_paramsKey

type MoqMetrics_ASTTotalDecorationTimeInc_paramsKey struct {
	Params struct{ D time.Duration }
	Hashes struct{ D hash.Hash }
}

MoqMetrics_ASTTotalDecorationTimeInc_paramsKey holds the map key params of the Metrics type

type MoqMetrics_ASTTotalDecorationTimeInc_recorder added in v0.28.0

MoqMetrics_ASTTotalDecorationTimeInc_recorder routes recorded function calls to the MoqMetrics moq

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) AndDo added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) Any added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) DoReturnResults added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) NoSeq added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) Repeat added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) ReturnResults added in v0.28.0

func (*MoqMetrics_ASTTotalDecorationTimeInc_recorder) Seq added in v0.28.0

type MoqMetrics_ASTTotalDecorationTimeInc_results

type MoqMetrics_ASTTotalDecorationTimeInc_results struct{}

MoqMetrics_ASTTotalDecorationTimeInc_results holds the results of the Metrics type

type MoqMetrics_ASTTotalLoadTimeInc_adaptor added in v0.28.0

type MoqMetrics_ASTTotalLoadTimeInc_adaptor struct {
	Moq *MoqMetrics
}

MoqMetrics_ASTTotalLoadTimeInc_adaptor adapts MoqMetrics as needed by the runtime

func (*MoqMetrics_ASTTotalLoadTimeInc_adaptor) ParamsKey added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_adaptor) PrettyParams added in v0.28.0

type MoqMetrics_ASTTotalLoadTimeInc_anyParams

type MoqMetrics_ASTTotalLoadTimeInc_anyParams struct {
	Recorder *MoqMetrics_ASTTotalLoadTimeInc_recorder
}

MoqMetrics_ASTTotalLoadTimeInc_anyParams isolates the any params functions of the Metrics type

func (*MoqMetrics_ASTTotalLoadTimeInc_anyParams) D

type MoqMetrics_ASTTotalLoadTimeInc_doFn

type MoqMetrics_ASTTotalLoadTimeInc_doFn func(d time.Duration)

MoqMetrics_ASTTotalLoadTimeInc_doFn defines the type of function needed when calling AndDo for the Metrics type

type MoqMetrics_ASTTotalLoadTimeInc_doReturnFn

type MoqMetrics_ASTTotalLoadTimeInc_doReturnFn func(d time.Duration)

MoqMetrics_ASTTotalLoadTimeInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type

type MoqMetrics_ASTTotalLoadTimeInc_paramIndexing added in v0.28.0

type MoqMetrics_ASTTotalLoadTimeInc_paramIndexing struct {
	D moq.ParamIndexing
}

MoqMetrics_ASTTotalLoadTimeInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type

type MoqMetrics_ASTTotalLoadTimeInc_params

type MoqMetrics_ASTTotalLoadTimeInc_params struct{ D time.Duration }

MoqMetrics_ASTTotalLoadTimeInc_params holds the params of the Metrics type

type MoqMetrics_ASTTotalLoadTimeInc_paramsKey

type MoqMetrics_ASTTotalLoadTimeInc_paramsKey struct {
	Params struct{ D time.Duration }
	Hashes struct{ D hash.Hash }
}

MoqMetrics_ASTTotalLoadTimeInc_paramsKey holds the map key params of the Metrics type

type MoqMetrics_ASTTotalLoadTimeInc_recorder added in v0.28.0

MoqMetrics_ASTTotalLoadTimeInc_recorder routes recorded function calls to the MoqMetrics moq

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) AndDo added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) Any added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) DoReturnResults added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) NoSeq added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) Repeat added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) ReturnResults added in v0.28.0

func (*MoqMetrics_ASTTotalLoadTimeInc_recorder) Seq added in v0.28.0

type MoqMetrics_ASTTotalLoadTimeInc_results

type MoqMetrics_ASTTotalLoadTimeInc_results struct{}

MoqMetrics_ASTTotalLoadTimeInc_results holds the results of the Metrics type

type MoqMetrics_Finalize_adaptor added in v0.28.0

type MoqMetrics_Finalize_adaptor struct {
	Moq *MoqMetrics
}

MoqMetrics_Finalize_adaptor adapts MoqMetrics as needed by the runtime

func (*MoqMetrics_Finalize_adaptor) ParamsKey added in v0.28.0

func (*MoqMetrics_Finalize_adaptor) PrettyParams added in v0.28.0

type MoqMetrics_Finalize_anyParams

type MoqMetrics_Finalize_anyParams struct {
	Recorder *MoqMetrics_Finalize_recorder
}

MoqMetrics_Finalize_anyParams isolates the any params functions of the Metrics type

type MoqMetrics_Finalize_doFn

type MoqMetrics_Finalize_doFn func()

MoqMetrics_Finalize_doFn defines the type of function needed when calling AndDo for the Metrics type

type MoqMetrics_Finalize_doReturnFn

type MoqMetrics_Finalize_doReturnFn func()

MoqMetrics_Finalize_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type

type MoqMetrics_Finalize_paramIndexing added in v0.28.0

type MoqMetrics_Finalize_paramIndexing struct{}

MoqMetrics_Finalize_paramIndexing holds the parameter indexing runtime configuration for the Metrics type

type MoqMetrics_Finalize_params

type MoqMetrics_Finalize_params struct{}

MoqMetrics_Finalize_params holds the params of the Metrics type

type MoqMetrics_Finalize_paramsKey

type MoqMetrics_Finalize_paramsKey struct {
	Params struct{}
	Hashes struct{}
}

MoqMetrics_Finalize_paramsKey holds the map key params of the Metrics type

type MoqMetrics_Finalize_recorder added in v0.28.0

MoqMetrics_Finalize_recorder routes recorded function calls to the MoqMetrics moq

func (*MoqMetrics_Finalize_recorder) AndDo added in v0.28.0

func (*MoqMetrics_Finalize_recorder) Any added in v0.28.0

func (*MoqMetrics_Finalize_recorder) DoReturnResults added in v0.28.0

func (*MoqMetrics_Finalize_recorder) NoSeq added in v0.28.0

func (*MoqMetrics_Finalize_recorder) Repeat added in v0.28.0

func (*MoqMetrics_Finalize_recorder) ReturnResults added in v0.28.0

func (*MoqMetrics_Finalize_recorder) Seq added in v0.28.0

type MoqMetrics_Finalize_results

type MoqMetrics_Finalize_results struct{}

MoqMetrics_Finalize_results holds the results of the Metrics type

type MoqMetrics_TotalProcessingTimeInc_adaptor added in v0.28.0

type MoqMetrics_TotalProcessingTimeInc_adaptor struct {
	Moq *MoqMetrics
}

MoqMetrics_TotalProcessingTimeInc_adaptor adapts MoqMetrics as needed by the runtime

func (*MoqMetrics_TotalProcessingTimeInc_adaptor) ParamsKey added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_adaptor) PrettyParams added in v0.28.0

type MoqMetrics_TotalProcessingTimeInc_anyParams

type MoqMetrics_TotalProcessingTimeInc_anyParams struct {
	Recorder *MoqMetrics_TotalProcessingTimeInc_recorder
}

MoqMetrics_TotalProcessingTimeInc_anyParams isolates the any params functions of the Metrics type

func (*MoqMetrics_TotalProcessingTimeInc_anyParams) D

type MoqMetrics_TotalProcessingTimeInc_doFn

type MoqMetrics_TotalProcessingTimeInc_doFn func(d time.Duration)

MoqMetrics_TotalProcessingTimeInc_doFn defines the type of function needed when calling AndDo for the Metrics type

type MoqMetrics_TotalProcessingTimeInc_doReturnFn

type MoqMetrics_TotalProcessingTimeInc_doReturnFn func(d time.Duration)

MoqMetrics_TotalProcessingTimeInc_doReturnFn defines the type of function needed when calling DoReturnResults for the Metrics type

type MoqMetrics_TotalProcessingTimeInc_paramIndexing added in v0.28.0

type MoqMetrics_TotalProcessingTimeInc_paramIndexing struct {
	D moq.ParamIndexing
}

MoqMetrics_TotalProcessingTimeInc_paramIndexing holds the parameter indexing runtime configuration for the Metrics type

type MoqMetrics_TotalProcessingTimeInc_params

type MoqMetrics_TotalProcessingTimeInc_params struct{ D time.Duration }

MoqMetrics_TotalProcessingTimeInc_params holds the params of the Metrics type

type MoqMetrics_TotalProcessingTimeInc_paramsKey

type MoqMetrics_TotalProcessingTimeInc_paramsKey struct {
	Params struct{ D time.Duration }
	Hashes struct{ D hash.Hash }
}

MoqMetrics_TotalProcessingTimeInc_paramsKey holds the map key params of the Metrics type

type MoqMetrics_TotalProcessingTimeInc_recorder added in v0.28.0

MoqMetrics_TotalProcessingTimeInc_recorder routes recorded function calls to the MoqMetrics moq

func (*MoqMetrics_TotalProcessingTimeInc_recorder) AndDo added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_recorder) Any added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_recorder) DoReturnResults added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_recorder) NoSeq added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_recorder) Repeat added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_recorder) ReturnResults added in v0.28.0

func (*MoqMetrics_TotalProcessingTimeInc_recorder) Seq added in v0.28.0

type MoqMetrics_TotalProcessingTimeInc_results

type MoqMetrics_TotalProcessingTimeInc_results struct{}

MoqMetrics_TotalProcessingTimeInc_results holds the results of the Metrics type

type MoqMetrics_mock

type MoqMetrics_mock struct {
	Moq *MoqMetrics
}

MoqMetrics_mock isolates the mock interface of the Metrics type

func (*MoqMetrics_mock) ASTPkgCacheHitsInc

func (m *MoqMetrics_mock) ASTPkgCacheHitsInc()

func (*MoqMetrics_mock) ASTPkgCacheMissesInc

func (m *MoqMetrics_mock) ASTPkgCacheMissesInc()

func (*MoqMetrics_mock) ASTTotalDecorationTimeInc

func (m *MoqMetrics_mock) ASTTotalDecorationTimeInc(d time.Duration)

func (*MoqMetrics_mock) ASTTotalLoadTimeInc

func (m *MoqMetrics_mock) ASTTotalLoadTimeInc(d time.Duration)

func (*MoqMetrics_mock) Finalize

func (m *MoqMetrics_mock) Finalize()

func (*MoqMetrics_mock) TotalProcessingTimeInc

func (m *MoqMetrics_mock) TotalProcessingTimeInc(d time.Duration)

type MoqMetrics_recorder

type MoqMetrics_recorder struct {
	Moq *MoqMetrics
}

MoqMetrics_recorder isolates the recorder interface of the Metrics type

func (*MoqMetrics_recorder) ASTPkgCacheHitsInc

func (*MoqMetrics_recorder) ASTPkgCacheMissesInc

func (*MoqMetrics_recorder) ASTTotalDecorationTimeInc

func (*MoqMetrics_recorder) ASTTotalLoadTimeInc

func (*MoqMetrics_recorder) Finalize

func (*MoqMetrics_recorder) TotalProcessingTimeInc

type MoqMetrics_runtime added in v0.28.0

type MoqMetrics_runtime struct {
	ParameterIndexing struct {
		ASTPkgCacheHitsInc        MoqMetrics_ASTPkgCacheHitsInc_paramIndexing
		ASTPkgCacheMissesInc      MoqMetrics_ASTPkgCacheMissesInc_paramIndexing
		ASTTotalLoadTimeInc       MoqMetrics_ASTTotalLoadTimeInc_paramIndexing
		ASTTotalDecorationTimeInc MoqMetrics_ASTTotalDecorationTimeInc_paramIndexing
		TotalProcessingTimeInc    MoqMetrics_TotalProcessingTimeInc_paramIndexing
		Finalize                  MoqMetrics_Finalize_paramIndexing
	}
}

MoqMetrics_runtime holds runtime configuration for the Metrics type

type Processor

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

Processor maintains the state of the metrics system

func NewMetrics

func NewMetrics(isLoggingFn IsLoggingFn, loggingfFn LoggingfFn) *Processor

NewMetrics returns a new system for gathering metrics

func (*Processor) ASTPkgCacheHitsInc

func (m *Processor) ASTPkgCacheHitsInc()

ASTPkgCacheHitsInc increments the ASTPkgCacheHits metric

func (*Processor) ASTPkgCacheMissesInc

func (m *Processor) ASTPkgCacheMissesInc()

ASTPkgCacheMissesInc increments the ASTPkgCacheMisses metric

func (*Processor) ASTTotalDecorationTimeInc

func (m *Processor) ASTTotalDecorationTimeInc(d time.Duration)

ASTTotalDecorationTimeInc increments the ASTTotalDecorationTime duration metric by the d duration specified

func (*Processor) ASTTotalLoadTimeInc

func (m *Processor) ASTTotalLoadTimeInc(d time.Duration)

ASTTotalLoadTimeInc increments the ASTTotalLoadTime duration metric by the d duration specified

func (*Processor) Finalize

func (m *Processor) Finalize()

Finalize is called after generating mocks to log metrics

func (*Processor) TotalProcessingTimeInc

func (m *Processor) TotalProcessingTimeInc(d time.Duration)

TotalProcessingTimeInc increments the TotalProcessingTime duration metric by the d duration specified

Jump to

Keyboard shortcuts

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