Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(48)

Issue 5639059: code review 5639059: runtime, pprof: add profiling of thread creation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by rsc
Modified:
13 years, 1 month ago
Reviewers:
CC:
golang-dev, r, dvyukov
Visibility:
Public.

Description

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 issue 1477.

Patch Set 1 #

Patch Set 2 : diff -r 001b807ba435 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 001b807ba435 https://code.google.com/p/go/ #

Total comments: 3

Patch Set 4 : diff -r c46561b27b39 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -75 lines) Patch
M src/cmd/dist/build.c View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/cmd/prof/pprof View 1 7 chunks +77 lines, -26 lines 0 comments Download
M src/pkg/net/http/pprof/pprof.go View 1 3 chunks +14 lines, -2 lines 0 comments Download
M src/pkg/runtime/Makefile View 1 1 chunk +1 line, -39 lines 0 comments Download
M src/pkg/runtime/debug.go View 1 1 chunk +26 lines, -0 lines 0 comments Download
M src/pkg/runtime/mprof.goc View 1 2 chunks +26 lines, -1 line 0 comments Download
M src/pkg/runtime/pprof/pprof.go View 1 1 chunk +38 lines, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 chunks +9 lines, -7 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 1 month ago (2012-02-08 06:40:35 UTC) #1
r
LGTM nice maybe in another CL couple it to the testing package.
13 years, 1 month ago (2012-02-08 09:10:53 UTC) #2
dvyukov
nitpicks http://codereview.appspot.com/5639059/diff/2010/src/pkg/runtime/debug.go File src/pkg/runtime/debug.go (right): http://codereview.appspot.com/5639059/diff/2010/src/pkg/runtime/debug.go#newcode107 src/pkg/runtime/debug.go:107: Stack0 [32]uintptr // stack trace for this record; ...
13 years, 1 month ago (2012-02-08 09:20:34 UTC) #3
dvyukov
On 2012/02/08 06:40:35, rsc wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
13 years, 1 month ago (2012-02-08 09:35:34 UTC) #4
rsc
On Wed, Feb 8, 2012 at 04:35, <dvyukov@google.com> wrote: > /usr/local/google/home/dvyukov/go_select/bin/tool/pprof line 3078, You are ...
13 years, 1 month ago (2012-02-08 14:01:43 UTC) #5
dvyukov
On Wed, Feb 8, 2012 at 6:01 PM, Russ Cox <rsc@golang.org> wrote: > On Wed, ...
13 years, 1 month ago (2012-02-08 14:10:12 UTC) #6
rsc
On Wed, Feb 8, 2012 at 09:10, Dmitry Vyukov <dvyukov@google.com> wrote: > I manually type ...
13 years, 1 month ago (2012-02-08 15:26:02 UTC) #7
rsc
*** Submitted as 3b53f76946b4 *** runtime, pprof: add profiling of thread creation Same idea as ...
13 years, 1 month ago (2012-02-08 15:33:57 UTC) #8
dvyukov
On Wed, Feb 8, 2012 at 7:26 PM, Russ Cox <rsc@golang.org> wrote: > On Wed, ...
13 years, 1 month ago (2012-02-08 15:39:13 UTC) #9
rsc
My copy of cmd/dist has other changes in it. Can you verify that this fixes ...
13 years, 1 month ago (2012-02-08 15:40:50 UTC) #10
dvyukov
On Wed, Feb 8, 2012 at 7:40 PM, Russ Cox <rsc@golang.org> wrote: > My copy ...
13 years, 1 month ago (2012-02-08 15:57:51 UTC) #11
rsc
13 years, 1 month ago (2012-02-08 16:31:47 UTC) #12
On Wed, Feb 8, 2012 at 10:57, Dmitry Vyukov <dvyukov@google.com> wrote:
> 'go tool pprof' still fails to start pprof in interactive mode. Should I
> file a bug?

Sure.  It's working for me though.

Russ
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b