Documentation
¶
Overview ¶
Package profile turns what a vm.Profiler collected into reports (TODO.md Q78): a text report of the functions and lines that took the time, for kukel profile and the Go API.
Index ¶
Constants ¶
const ( MaxFunctions = 40 MaxLines = 20 )
MaxFunctions and MaxLines bound the rows of the report's tables.
Variables ¶
This section is empty.
Functions ¶
func Pprof ¶
Pprof writes what p collected in Go's pprof format (gzipped protocol buffers), for go tool pprof: a function per Kukel function (with its file and first line, so that pprof can show the source), a location per line of it, and per sample the number of samples and the time (wall or cpu, in nanoseconds). Each sample has the label "interpreter" ("main", "worker 1: f"); with workers, each stack starts with a frame named after its interpreter, so that a flame graph shows them apart.