runtime

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package runtime provides runtime helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ancestor added in v0.0.8

func Ancestor(skipCallers, stackSize int, skipPackages ...string) string

Ancestor returns name and package of closest parent function that does not belong to skipped packages.

For example the result could be

myapp/mypackage.MyType.myFunction

func CallerFunc

func CallerFunc(skip ...int) string

CallerFunc returns trimmed path and name of parent function.

func StableHeapInUse added in v0.0.2

func StableHeapInUse() int64

StableHeapInUse returns the stable size of used heap in bytes.

Heap is considered stable if it changes for less than 10KB between measurements.

Types

This section is empty.

Jump to

Keyboard shortcuts

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