From b23d0738686d24ab627b2fb244779284051c9df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Mon, 8 Feb 2021 15:14:05 +0100 Subject: [PATCH] flatten toc --- block.md | 41 ++++++++++++++++++++--------------------- goroutine.md | 23 +++++++++++------------ 2 files changed, 31 insertions(+), 33 deletions(-) diff --git a/block.md b/block.md index c69a485..2738f96 100644 --- a/block.md +++ b/block.md @@ -4,27 +4,26 @@ This document was last updated for `go1.15.7` but probably still applies to olde -- [Block Profiling in Go](#block-profiling-in-go) - * [Description](#description) - * [Usage](#usage) - * [Overhead](#overhead) - + [Implementation Details](#implementation-details) - + [Benchmarks](#benchmarks) - + [Memory Usage](#memory-usage) - + [Initialization Time](#initialization-time) - * [Accuracy](#accuracy) - + [Sampling Bias](#sampling-bias) - - [Simple Example](#simple-example) - - [Simulation & Proposal for Improvement](#simulation---proposal-for-improvement) - + [Time Stamp Counter](#time-stamp-counter) - + [Stack Depth](#stack-depth) - + [Spin Locks](#spin-locks) - * [Relationship with Wall Clock Time](#relationship-with-wall-clock-time) - * [Relationship with Mutex Profiling](#relationship-with-mutex-profiling) - * [Profiler Labels](#profiler-labels) - * [pprof Output](#pprof-output) - * [History](#history) - * [Disclaimers](#disclaimers) +* [Description](#description) +* [Usage](#usage) +* [Overhead](#overhead) + + [Implementation Details](#implementation-details) + + [Benchmarks](#benchmarks) + + [Memory Usage](#memory-usage) + + [Initialization Time](#initialization-time) +* [Accuracy](#accuracy) + + [Sampling Bias](#sampling-bias) + - [Simple Example](#simple-example) + - [Simulation & Proposal for Improvement](#simulation---proposal-for-improvement) + + [Time Stamp Counter](#time-stamp-counter) + + [Stack Depth](#stack-depth) + + [Spin Locks](#spin-locks) +* [Relationship with Wall Clock Time](#relationship-with-wall-clock-time) +* [Relationship with Mutex Profiling](#relationship-with-mutex-profiling) +* [Profiler Labels](#profiler-labels) +* [pprof Output](#pprof-output) +* [History](#history) +* [Disclaimers](#disclaimers) ## Description diff --git a/goroutine.md b/goroutine.md index a4e5483..fcf48db 100644 --- a/goroutine.md +++ b/goroutine.md @@ -2,18 +2,17 @@ This document was last updated for `go1.15.6` but probably still applies to olde # Goroutine Profiling in Go -- [Goroutine Profiling in Go](#goroutine-profiling-in-go) - * [Description](#description) - * [Overhead](#overhead) - * [Goroutine Properties](#goroutine-properties) - * [APIs](#apis) - + [[`runtime.Stack()`](https://golang.org/pkg/runtime/#Stack) / [`pprof.Lookup(debug=2)`](https://golang.org/pkg/runtime/pprof/#Lookup)](#--runtimestack-----https---golangorg-pkg-runtime--stack-------pproflookup-debug-2----https---golangorg-pkg-runtime-pprof--lookup-) - + [[`pprof.Lookup(debug=1)`](https://golang.org/pkg/runtime/pprof/#Lookup)](#--pproflookup-debug-1----https---golangorg-pkg-runtime-pprof--lookup-) - + [[`pprof.Lookup(debug=0)`](https://golang.org/pkg/runtime/pprof/#Lookup)](#--pproflookup-debug-0----https---golangorg-pkg-runtime-pprof--lookup-) - + [[`runtime.GoroutineProfile()`](https://golang.org/pkg/runtime/#GoroutineProfile)](#--runtimegoroutineprofile-----https---golangorg-pkg-runtime--goroutineprofile-) - + [[`net/http/pprof`](https://golang.org/pkg/net/http/pprof/)](#--net-http-pprof---https---golangorg-pkg-net-http-pprof--) - * [History](#history) - * [Disclaimers](#disclaimers) +* [Description](#description) +- [Overhead](#overhead) +- [Goroutine Properties](#goroutine-properties) +- [APIs](#apis) + + [[`runtime.Stack()`](https://golang.org/pkg/runtime/#Stack) / [`pprof.Lookup(debug=2)`](https://golang.org/pkg/runtime/pprof/#Lookup)](#--runtimestack-----https---golangorg-pkg-runtime--stack-------pproflookup-debug-2----https---golangorg-pkg-runtime-pprof--lookup-) + + [[`pprof.Lookup(debug=1)`](https://golang.org/pkg/runtime/pprof/#Lookup)](#--pproflookup-debug-1----https---golangorg-pkg-runtime-pprof--lookup-) + + [[`pprof.Lookup(debug=0)`](https://golang.org/pkg/runtime/pprof/#Lookup)](#--pproflookup-debug-0----https---golangorg-pkg-runtime-pprof--lookup-) + + [[`runtime.GoroutineProfile()`](https://golang.org/pkg/runtime/#GoroutineProfile)](#--runtimegoroutineprofile-----https---golangorg-pkg-runtime--goroutineprofile-) + + [[`net/http/pprof`](https://golang.org/pkg/net/http/pprof/)](#--net-http-pprof---https---golangorg-pkg-net-http-pprof--) +- [History](#history) +- [Disclaimers](#disclaimers) ## Description