metrics

package
v0.5.11-RC14 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateAndPrint

func CalculateAndPrint(
	txsType string,
	totalTxs uint64,
	client *ethclient.Client,
	profilingResult string,
	elapsed time.Duration,
	sequencerTimeSub, executorTimeSub float64,
	allTxs []*types.Transaction,
)

CalculateAndPrint calculates and prints the results

func FetchProfiling

func FetchProfiling() (string, error)

FetchProfiling fetches the profiling metrics

func FetchPrometheus

func FetchPrometheus() (*http.Response, error)

FetchPrometheus fetches the prometheus metrics

func GetTotalGasUsedFromTxs added in v0.0.990

func GetTotalGasUsedFromTxs(client *ethclient.Client, txs []*types.Transaction) uint64

GetTotalGasUsedFromTxs sums the total gas used from the transactions

func PrintSummary added in v0.0.990

func PrintSummary(
	txsType string,
	totalTransactionsSent uint64,
	totalTxs uint64,
	processingTimeSequencer float64,
	processingTimeExecutor float64,
	totalGas uint64,
)

func PrintUniswapDeployments added in v0.0.990

func PrintUniswapDeployments(deployments time.Duration, count uint64)

Types

type Values added in v0.0.990

type Values struct {
	SequencerTotalProcessingTime float64
	ExecutorTotalProcessingTime  float64
	WorkerTotalProcessingTime    float64
}

func GetValues

func GetValues(metricsResponse *http.Response) (Values, error)

GetValues gets the prometheus metric Values

Jump to

Keyboard shortcuts

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