utils

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anon

type Anon struct {
	Input     []byte
	Output    io.Writer
	Whitelist string
}

func (*Anon) Execute

func (a *Anon) Execute(ctx context.Context) error

type Avg

type Avg struct {
	Input  []byte
	Output io.Writer
}

func (*Avg) Execute

func (a *Avg) Execute(ctx context.Context) error

type Folded

type Folded struct {
	Input       []byte
	Output      io.Writer
	Headers     bool
	LineNumbers bool
}

func (*Folded) Execute

func (f *Folded) Execute(ctx context.Context) error

type Heapage added in v2.0.3

type Heapage struct {
	Input  []byte
	Output io.Writer
	Period time.Duration
}

Heapage uses Little's Law to add virtual heap age frames to a Go memory profile. Credit for this idea goes to Maxim Sokolov.

avg(inuse_age) = inuse_objects / (alloc_objects/period)

func (*Heapage) Execute added in v2.0.3

func (h *Heapage) Execute(ctx context.Context) error

type JSON

type JSON struct {
	Input  []byte
	Output io.Writer
	Simple bool
}

func (*JSON) Execute

func (j *JSON) Execute(ctx context.Context) error

type Jemalloc added in v2.0.3

type Jemalloc struct {
	Input  []byte
	Output io.Writer
}

func (*Jemalloc) Execute added in v2.0.3

func (f *Jemalloc) Execute(ctx context.Context) error

type Labelframes

type Labelframes struct {
	Input  []byte
	Output io.Writer
	Label  string
}

func (*Labelframes) Execute

func (l *Labelframes) Execute(ctx context.Context) error

type Raw

type Raw struct {
	Input  []byte
	Output io.Writer
}

func (*Raw) Execute

func (r *Raw) Execute(ctx context.Context) error

Jump to

Keyboard shortcuts

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