Grokking Concurrency in Go
0% completed
Finding Leaks with the Goroutine Leak Profile
Output:
goroutineleak profile: total 3 2 main.first.func1 1 main.report.func2 goroutines alive: 6
Six goroutines exist when the profile is taken. Four of them are blocked with nothing left to unblock them, one sleeps for an hour, and the last is main. The profile names three: the two slower mirrors in first, and the goroutine in report that waits for a Done that will never come. It leaves out the goroutine blocked on events and the one sleeping for an hour, and it leaves out main. The loop in `main
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%