memtrack

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package memtrack implements utility to log memory usage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(ctx context.Context, name string) context.Context

Attach creates a child context with a given tracker attached.

func Dump

func Dump(ctx context.Context, desc string)

Dump logs memory usage if the current context is associated with a tracker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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