Make it easier to link feature matrix

This commit is contained in:
Felix Geisendörfer 2021-03-16 17:26:35 +01:00
parent 5af8179eec
commit 6271bd8a84

View file

@ -7,6 +7,7 @@ This document was last updated for `go1.15.6` but probably still applies to olde
- [Description](#description)
- [Overhead](#overhead)
- [Goroutine Properties](#goroutine-properties)
- [Feature Matrix](#feature-matrix)
- [APIs](#apis)
- [History](#history)
- [Disclaimers](#disclaimers)
@ -53,6 +54,8 @@ Goroutines have a lot of [properties](https://github.com/golang/go/blob/go1.15.6
- [`gopc`](https://github.com/golang/go/blob/go1.15.6/src/runtime/runtime2.go#L466): The program counter address (pc) of the `go ...` call that caused this goroutine to be created. Can be converted to the file, function name and line number.
- [`lockedm`](https://github.com/golang/go/blob/go1.15.6/src/runtime/runtime2.go#L460): The thread this goroutine is locked to, if any.
## Feature Matrix
The feature matrix below give you a quick idea on the current availability of these properties through the various APIs. Also available as a [google sheet](https://docs.google.com/spreadsheets/d/1txMRjhDA0NC9eSNRRUMMFI5uWJ3FBnACGVjXYT1gKig/edit?usp=sharing).
![goroutine feature matrix](./goroutine-matrix.png)