Discover Packages
github.com/empijei/chantrack
package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Mar 6, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Chan Track
Keep track of how your channel buffers evolve over time.
If they are always full it means your producers are faster than then consumers,
and this might lead to issues.
Expand ▾
Collapse ▴
Documentation
¶
Package chantrack allows to keep track of channels buffers.
func Make[T any ](size int ) chan T
Make should be used instead of the builtin make to construct channels to track.
type Report struct {
MakeCallLocation string
Len, Cap int
}
Report contains info about a channel.
Sample takes a sample of the currently tracked channels.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.