goroutines

package
v7.6.74 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package goroutines spawns a loop to periodically check for the count of goroutines. If the count reaches a limit and is increasing, print the top N entries of the goroutine profile.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monitor

func Monitor(interval time.Duration, limit int, topN int) (stop func())

Monitor keeps checking the number of goroutines in interval. If the number reaching the limit, it logs the topN entries of the goroutine profile whenever the number is higher than the previous check.

func PrintProfile

func PrintProfile(topN int)

PrintProfile logs the topN entries of the goroutine profile

Types

This section is empty.

Jump to

Keyboard shortcuts

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