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

update links and stuff

This commit is contained in:
Felix Geisendörfer
2021-01-17 19:23:23 +01:00
parent 6fde1a9f35
commit 7ed351f591
5 changed files with 15 additions and 14 deletions

View File

@ -3,15 +3,15 @@
I've just started a new job at [Datadog](https://www.datadoghq.com/) to work on [Continuous Profiling](https://www.datadoghq.com/product/code-profiling/) for Go. To make sure that I know what I'm talking about, I'm planning to do an in-depth study of the existing profilers and how they work. I'll try to summarize what I learned in this repository as it might be useful to others.
- [pprof tool & format](./pprof.md): Describes the pprof tool and it's binary data format.
- [Goroutine Profiling](./goroutine.md)
## Todo
- CPU Profiler
- Heap Profiler
- Mutex Profiler
- Goroutine Profiler
- Block Profiler
- Wallclock Profiler (fgprof)
- CPU Profiling
- Heap Profiling
- Mutex Profiling
- Block Profiling
- Wallclock Profiling (fgprof)
## External Links

4
cpu.md
View File

@ -1,8 +1,6 @@
🚧 This note is still work in progress, please come back later! 🚧
# Go's CPU profiler
[TOC]
# CPU Profiling in Go
## How it works

View File

@ -12,6 +12,8 @@ A `batch` has a `start` and an `end` time as well as a slice of `profiles`. Each
## Payload Format
TODO: This is outdated, needs updating [based on this PR](https://github.com/DataDog/dd-trace-go/pull/781).
The payload uses `multipart/form-data` encoding and includes the following form fields for every `batch` that is being uploaded.
- `format`: Always `pprof`

View File

@ -1,6 +1,6 @@
This document was last updated for `go1.15.6` but probably still applies to older/newer versions for the most parts.
# Go's Goroutine Profiler
# Goroutine Profiling in Go
Go has various APIs to provide users with a list of **active** goroutines, their current stack trace, as well as various other properties. Some APIs expose this information as statistical summaries, while other APIs provide information for each individual goroutine.

View File

@ -150,3 +150,4 @@ The output above is truncated also, [pprof.samples.cpu.001.protoc.txt](./example
- Write more about using `go tool pprof` itself.
- Explain why pprof can be given a path to the binary the profile belongs to.
- Get into more details about line numbers / addresses.
- Talk about mappings and when a Go binary might have more than one