1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-15 23:54:16 +02:00

Be more explicit about incomplete block events

This commit is contained in:
Felix Geisendörfer
2021-04-02 10:31:04 +02:00
parent 413b4b5cb2
commit 066ac6063a

View File

@ -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)) - 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 - Blocking in [cgo](https://golang.org/cmd/cgo/) calls
- Events that block forever (e.g. sending/receiving on nil channels) - 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 ## Usage