metrics

package
v1.1.1-0...-dcff8be Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertExecutionMetrics

func InsertExecutionMetrics(client storage.SQLClient, execUUID string, execMetrics ExecutionMetrics) error

Types

type ExecutionMetrics

type ExecutionMetrics struct {
	// The sum of the time taken by every component to run one query on average.
	TotalComponentsCPUTime float64

	// Map of string/float that contains the name of the component as a key
	// and the time taken by that component on average per query as a value.
	ComponentsCPUTime map[string]float64

	// TotalComponentsMemStatsAllocBytes represents the total number of bytes
	// allocated even if freed, by all the components of the execution and on average per query.
	// The underlying go metrics used is go_memstats_alloc_bytes_total.
	TotalComponentsMemStatsAllocBytes float64

	// ComponentsMemStatsAllocBytes represents the number of bytes allocated
	// and freed that each component used on average per query. The go metrics used is go_memstats_alloc_bytes_total.
	ComponentsMemStatsAllocBytes map[string]float64
}

ExecutionMetrics contains all the different system and service metrics that were gathered during the execution of a benchmark.

func GetExecutionMetrics

func GetExecutionMetrics(client influxdb.Client, execUUID string, queries int) (ExecutionMetrics, error)

GetExecutionMetrics fetches and computes a single execution's metrics. Metrics are fetched using the given influxdb.Client and execUUID.

func GetExecutionMetricsSQL

func GetExecutionMetricsSQL(client storage.SQLClient, execUUID string) (ExecutionMetrics, error)

func NewExecMetrics

func NewExecMetrics() ExecutionMetrics

type ExecutionMetricsArray

type ExecutionMetricsArray []ExecutionMetrics

ExecutionMetricsArray is a slice of ExecutionMetrics, it has a Median method to compute the overall median of the slice.

Jump to

Keyboard shortcuts

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