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 ¶
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.
Click to show internal directories.
Click to hide internal directories.