mem

package
v0.0.0-...-177afef Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usage

type Usage struct {
	MaxRss uint64
	AvgRss uint64
}

func RecordUsage

func RecordUsage(ctx context.Context) (usage Usage, err error)

RecordUsage return the final Usage when context canceled

func RecordUsageWithPid

func RecordUsageWithPid(ctx context.Context, pid int) (usage Usage, err error)

RecordUsageWithPid return the final Usage when context canceled

func (Usage) String

func (u Usage) String() string

Jump to

Keyboard shortcuts

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