1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-12 23:50:13 +02:00

minor edits

This commit is contained in:
Felix Geisendörfer
2021-03-18 11:03:11 +01:00
parent 6962c13040
commit 96b99cf724
3 changed files with 7 additions and 7 deletions

View File

@ -6,11 +6,11 @@ Stack traces play a critical role in Go profiling. So let's try to understand th
All Go profilers work by collecting samples of stack trace and putting them into [pprof profiles](./pprof.md). Ignoring some details, a pprof profile is just a frequency table of stack traces like shown below:
| stack trace | samples/count |
| ------------ | ------------- |
| main;foo | 5 |
| main;foo;bar | 3 |
| main;foobar | 4 |
| stack trace | count |
| ------------ | ----- |
| main;foo | 5 |
| main;foo;bar | 3 |
| main;foobar | 4 |
Let's zoom in on the second stack trace in the table above: `main;foo;bar`. A Go developer will usually be more familiar with seeing a stack trace like this as rendered by `panic()` or [`runtime.Stack()`](https://golang.org/pkg/runtime/#Stack) shown below: