mem

package
v0.0.0-...-e2b8481 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTracking

func ValidateTracking(skip int, toleranceBytes uint64, f func(tr Tracker)) (err error)

ValidateTracking... Not go-routine safe due to global memory profiling.

Types

type MemProfileFramedRecords

type MemProfileFramedRecords struct {
	AllocatedBytes uint64
	// contains filtered or unexported fields
}

func (MemProfileFramedRecords) String

func (r MemProfileFramedRecords) String() string

type Problem

type Problem struct {
	TrackedBytes uint64
	Allocated    MemProfileFramedRecords
	File         string
	Line         int
}

func (Problem) Error

func (p Problem) Error() string

type Tracker

type Tracker interface {
	MemoryBytesAllocated(b int)
}

type ValidationFailedError

type ValidationFailedError struct {
	Problems []Problem
}

func (ValidationFailedError) Error

func (e ValidationFailedError) Error() string

Jump to

Keyboard shortcuts

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