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

Issue 9666049: runtime: add gctool (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by atom
Modified:
10 years, 11 months ago
Reviewers:
iant, dvyukov, golang-dev
CC:
rsc
Visibility:
Public.

Description

runtime: add gctool See documentation in gctool.go

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -10 lines) Patch
A src/pkg/runtime/gctool.go View 1 1 chunk +330 lines, -0 lines 0 comments Download
A src/pkg/runtime/gctool_example.go View 1 1 chunk +27 lines, -0 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 22 chunks +150 lines, -10 lines 0 comments Download

Messages

Total messages: 12
atom
Hello golang-dev@googlegroups.com (cc: dvyukov@google.com, rsc@golang.org), I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2013-05-29 09:53:28 UTC) #1
iant
I think we should discuss this idea on golang-dev.
10 years, 11 months ago (2013-05-29 18:21:08 UTC) #2
0xe2.0x9a.0x9b_gmail.com
Does the idea seem controversial or good? On Wednesday, May 29, 2013 8:21:08 PM UTC+2, ...
10 years, 11 months ago (2013-05-29 18:25:39 UTC) #3
rsc
The overall idea of having a tool to debug the garbage collector is fine, but ...
10 years, 11 months ago (2013-05-29 18:33:14 UTC) #4
dvyukov
On 2013/05/29 09:53:28, atom wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:dvyukov@google.com, mailto:rsc@golang.org), > > I'd like ...
10 years, 11 months ago (2013-05-30 06:36:18 UTC) #5
dvyukov
On 2013/05/29 18:33:14, rsc wrote: > The overall idea of having a tool to debug ...
10 years, 11 months ago (2013-05-30 06:38:17 UTC) #6
atom
On 2013/05/30 06:36:18, dvyukov wrote: > On 2013/05/29 09:53:28, atom wrote: > > Hello mailto:golang-dev@googlegroups.com ...
10 years, 11 months ago (2013-05-30 07:38:21 UTC) #7
atom
On 2013/05/30 06:38:17, dvyukov wrote: > On 2013/05/29 18:33:14, rsc wrote: > > The overall ...
10 years, 11 months ago (2013-05-30 07:49:58 UTC) #8
dvyukov
Is it possible to build an svg graph similar to what pprof generates for cpu/heap ...
10 years, 11 months ago (2013-05-31 07:31:50 UTC) #9
atom
On 2013/05/31 07:31:50, dvyukov wrote: > Is it possible to build an svg graph similar ...
10 years, 11 months ago (2013-05-31 09:48:14 UTC) #10
rsc
Carl, how does this fit with what you were thinking for dumping gc debugging information? ...
10 years, 11 months ago (2013-05-31 11:37:58 UTC) #11
cshapiro1
10 years, 11 months ago (2013-05-31 23:33:24 UTC) #12
On Fri, May 31, 2013 at 4:37 AM, Russ Cox <rsc@golang.org> wrote:

> Carl, how does this fit with what you were thinking for dumping gc
> debugging information? Is there a standard format we should be using?
>

This is different.

What I am planning to provide is a tool that dumps information about the
root set and the pointers in objects.  A user or garbage collection
developer will invoke the tool through a function call or signal delivery.
 The execution of the tool is explicitly not be tied to a garbage
collection which I believe is a critical feature.  The heap information
would be written in HPROF (with adjustments for Go) or a similar format.
 Third party tools would be used to browse the heap content and present
connectivity information and identify possible leaks.  This would be useful
for end users and developers.

This tool requires a compile time variable to be set.  Its execution is
tied to the garbage collector.  The data is written in a text file and
there is program that can compute paths to the root.   I think this could
be useful for a developer for debugging a limited set of problems.  I am
not sure if this is generally useful because it requires re-compiling and
afterward is always on.

I am also concerned about adding this code on top of the existing marking
code.
Sign in to reply to this message.

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