]> Cypherpunks repositories - gostls13.git/commit
runtime, pprof: add profiling of thread creation
authorRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 15:33:54 +0000 (10:33 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 15:33:54 +0000 (10:33 -0500)
commit5b93fc9da67d59159e8c30494136c9761e350c1f
tree774246edfb5de099e0793fd559c95eacf49a31a7
parentfff732ea2c4d3cb449c4383a6957ff80ca75c70a
runtime, pprof: add profiling of thread creation

Same idea as heap profile: how did each thread get created?
Low memory (256 bytes per OS thread), high reward for
programs that suddenly have many threads running.

Fixes #1477.

R=golang-dev, r, dvyukov
CC=golang-dev
https://golang.org/cl/5639059
src/cmd/dist/build.c
src/cmd/prof/pprof
src/pkg/net/http/pprof/pprof.go
src/pkg/runtime/Makefile
src/pkg/runtime/debug.go
src/pkg/runtime/mprof.goc
src/pkg/runtime/pprof/pprof.go
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h