mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2026-06-20 16:45:26 +08:00
Update cpu.md (#14)
This commit is contained in:
parent
ab8bfc0188
commit
91410d5341
1 changed files with 2 additions and 2 deletions
4
cpu.md
4
cpu.md
|
|
@ -16,7 +16,7 @@ A B A B A A A B A B A A
|
|||
10ms
|
||||
```
|
||||
|
||||
The resulting [pprof output](./pprof.md) doesn't contain the raw sample events. Instead it aggregates all samples and reports the **samples/count** and **cpu/nanoseconds** values. The latter is [derrived](https://github.com/golang/go/blob/go1.15.6/src/runtime/pprof/proto.go#L354) by multiplying the sample count with the sample period and is therefore redundant. I suspect it's included because pprof doesnt support the count to time conversion, but if anybody has the full story please let me know!
|
||||
The resulting [pprof output](./pprof.md) doesn't contain the raw sample events. Instead it aggregates all samples and reports the **samples/count** and **cpu/nanoseconds** values. The latter is [derived](https://github.com/golang/go/blob/go1.15.6/src/runtime/pprof/proto.go#L354) by multiplying the sample count with the sample period and is therefore redundant. I suspect it's included because pprof doesnt support the count to time conversion, but if anybody has the full story please let me know!
|
||||
|
||||
Back to the example above, the pprof output file would containing the following:
|
||||
|
||||
|
|
@ -83,4 +83,4 @@ The various ways one can record CPU profiles in Go are listed below.
|
|||
|
||||
I'm [felixge](https://github.com/felixge) and work at [Datadog](https://www.datadoghq.com/) on [Continuous Profiling](https://www.datadoghq.com/product/code-profiling/) for Go. You should check it out. We're also [hiring](https://www.datadoghq.com/jobs-engineering/#all&all_locations) : ).
|
||||
|
||||
The information on this page is believed to be correct, but no warranty is provided. Feedback is welcome!
|
||||
The information on this page is believed to be correct, but no warranty is provided. Feedback is welcome!
|
||||
|
|
|
|||
Loading…
Reference in a new issue