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

Issue 713041: code review 713041: runtime: add memory profiling, disabled. (Closed)

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

Description

runtime: add memory profiling, disabled. no way to get the data out yet. add prototype for runtime.Callers, missing from last CL.

Patch Set 1 #

Patch Set 2 : code review 713041: runtime: add memory profiling, disabled. #

Patch Set 3 : code review 713041: runtime: add memory profiling, disabled. #

Total comments: 6

Patch Set 4 : code review 713041: runtime: add memory profiling, disabled. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -31 lines) Patch
M src/pkg/runtime/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/extern.go View 1 2 3 2 chunks +24 lines, -2 lines 0 comments Download
M src/pkg/runtime/iface.c View 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/malloc.h View 3 chunks +17 lines, -1 line 0 comments Download
M src/pkg/runtime/malloc.cgo View 1 2 3 8 chunks +52 lines, -8 lines 0 comments Download
M src/pkg/runtime/mfinal.c View 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 8 chunks +14 lines, -10 lines 0 comments Download
A src/pkg/runtime/mprof.cgo View 2 3 1 chunk +225 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/slice.c View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/string.cgo View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 11 months ago (2010-03-24 01:01:57 UTC) #1
r
LGTM http://codereview.appspot.com/713041/diff/4001/5002 File src/pkg/runtime/extern.go (right): http://codereview.appspot.com/713041/diff/4001/5002#newcode32 src/pkg/runtime/extern.go:32: // to skip before recording in pc. It ...
14 years, 11 months ago (2010-03-24 02:39:06 UTC) #2
rsc
> http://codereview.appspot.com/713041/diff/4001/5008#newcode35 > src/pkg/runtime/mprof.cgo:35: static Bucket *buckhash[179999]; > that's huge. can't you allocate this only ...
14 years, 11 months ago (2010-03-24 03:23:02 UTC) #3
rsc
All done. I changed buckhash to allocate anyway. Regarding fastrand1, it probably should be interlocked ...
14 years, 11 months ago (2010-03-24 03:31:31 UTC) #4
rsc
14 years, 11 months ago (2010-03-24 03:48:33 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=4c2146eece2e ***

runtime: add memory profiling, disabled.
no way to get the data out yet.

add prototype for runtime.Callers,
missing from last CL.

R=r
CC=golang-dev
http://codereview.appspot.com/713041
Sign in to reply to this message.

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