top

package
v0.28.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MaxRowsDefault  = 20
	IntervalDefault = 1

	IntervalParam = "interval"
	MaxRowsParam  = "max_rows"
	SortByParam   = "sort_by"
)

Variables

This section is empty.

Functions

func ComputeIterations added in v0.15.0

func ComputeIterations(interval, timeout time.Duration) (int, error)

ComputeIterations returns the number of iterations to perform to get the desired timeout. It returns zero if timeout is zero.

func SortStats

func SortStats[T any](stats []*T, sortBy []string, colMap *columns.ColumnMap[T])

Types

type Event

type Event[T any] struct {
	Error string `json:"error,omitempty"`
	Stats []*T   `json:"stats,omitempty"`
}

Directories

Path Synopsis
block-io
ebpf
file
tcp

Jump to

Keyboard shortcuts

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