From 91410d534134a587633e19d29afdff1c03afe758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=BCmer=20Cip?= Date: Wed, 23 Feb 2022 11:22:28 +0300 Subject: [PATCH] Update cpu.md (#14) --- cpu.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu.md b/cpu.md index 1d778a9..82bb6f1 100644 --- a/cpu.md +++ b/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! \ No newline at end of file +The information on this page is believed to be correct, but no warranty is provided. Feedback is welcome!