runtime

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package runtime collects runtime metrics, if included.

package main

import(
	"github.com/bsm/rucksack/met"
	_ "github.com/bsm/rucksack/met/runtime"
)

func main() {
	sleep := make(chan struct{})
	<-sleep
}

Run with:

MET_NAME=myapp MET_RUNTIME=mem,heap,gc go run main.go

Jump to

Keyboard shortcuts

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