flâneur — a map of the web's best reading

Diagnostics - The Go Programming Language

go.dev · 2,252 words · saved by 1 readers

The Go ecosystem provides a large suite of APIs and tools to diagnose logic and performance problems in Go programs. This page summarizes the available tools and helps Go users pick the right one for their specific problem. Diagnostics solutions can be categorized into the following groups: Note: Some diagnostics tools may interfere with each other. For example, precise memory profiling skews CPU profiles and goroutine blocking profiling affects scheduler trace. Use tools in isolation to get more precise info. Profiling is useful for identifying expensive or frequently called sections of code. The Go runtime provides profiling data in the format expected by the pprof visualization tool. The profiling data can be collected during testing via go test or endpoints made available from the net/http/pprof package. Users need to collect the profiling data and use pprof tools to filter and visualize the top code paths. Predefined profiles provided by the runtime/pprof package: What other profi

Documentation Diagnostics Diagnostics hello world . Do not send CLs removing the interior tags from such phrases. --> Introduction The Go ecosystem provides a large suite of APIs and tools to diagnose logic and performance problems in Go programs. This page summarizes the available tools and helps Go users pick the right one for their specific problem. Diagnostics solutions can be categorized into the following groups: Profiling : Profiling tools analyze the complexity and costs of a Go program such as its memory usage and frequently called functions to identify the expensive sections of a Go

Explore this link on the map →

saved by

related reading