mmap

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AggregateAll = "all"
	AggregateSum = "livesum"
	AggregateMin = "min"
	AggregateMax = "max"
)

Variables

This section is empty.

Functions

func NewDefaultProbe

func NewDefaultProbe(mmapDir string) probe.Probe

func NewProbe

func NewProbe(mmapDir string, glob string) probe.Probe

Types

type FileMetadata

type FileMetadata struct {
	MetricType  string
	Aggregation string
	Pid         string
}

type MetricFile

type MetricFile struct {
	FileMetadata
	ContentLen uint32
	Samples    []encodedSample
}

func ParseFile

func ParseFile(filePath string) (*MetricFile, error)

Jump to

Keyboard shortcuts

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