runtime

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package runtime provides observability helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerFunc

func CallerFunc(skip ...int) string

CallerFunc returns trimmed path and name of parent function.

func StableHeapInUse

func StableHeapInUse() uint64

StableHeapInUse measures heap and triggers GC until HeapInUse stabilizes with 100 KB precision.

This function can be useful to benchmark memory efficiency of particular data layouts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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