From 066ac6063aab6f09cced344f9e7ac1031d0c9a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Fri, 2 Apr 2021 10:31:04 +0200 Subject: [PATCH] Be more explicit about incomplete block events --- block.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block.md b/block.md index 2b118a4..178a75b 100644 --- a/block.md +++ b/block.md @@ -46,8 +46,9 @@ The operations above are a subset of the [waiting states](https://github.com/gol - Runtime Internal Locks (e.g. for [stopTheWorld](https://github.com/golang/go/blob/go1.15.7/src/runtime/proc.go#L900)) - Blocking in [cgo](https://golang.org/cmd/cgo/) calls - Events that block forever (e.g. sending/receiving on nil channels) +- Blocking events that have not completed yet. -However, some of the waiting states above above can be analyzed using [Goroutine Profiling](./goroutine.md). +In some cases [Goroutine Profiling](./goroutine.md) (debug=2) can be a good alternative to block profiling since it covers all waiting states and can show ongoing blocking events that have not yet completed. ## Usage