]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: compute pprof-style output per goroutine type
authorHana (Hyang-Ah) Kim <hyangah@gmail.com>
Thu, 2 Nov 2017 23:17:39 +0000 (19:17 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Thu, 30 Nov 2017 19:34:32 +0000 (19:34 +0000)
commit5bd66e5e1e815f25b1a3973220ba803cfeeb98e4
tree3ce8bd49bc7b82826a58da98049d741af17e850c
parent6be1c09e199a0f32f07e39c2629a5b12a3aec9e2
cmd/trace: compute pprof-style output per goroutine type

The trace command computes IO, Schedule, Block, and Syscall profiles
by following the unblocking links in the execution trace and summing
up the duration.  This change offers variations of those profiles
that include only selected goroutine types. The id parameter takes the
goroutine type - i.e. pc of the goroutine.

The output is available from the /goroutine view. So, users can see
where the goroutines of interest typically block.

Also, these profiles are available for download so users can use
pprof or other tools to interpret the output. This change adds links
for download of global profile in the main page.

Change-Id: I35699252056d164e60de282b0406caf96d629c85
Reviewed-on: https://go-review.googlesource.com/75710
Reviewed-by: Sameer Ajmani <sameer@golang.org>
src/cmd/trace/goroutines.go
src/cmd/trace/main.go
src/cmd/trace/pprof.go