Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add counter of heap allocations to malloc.Stats #367

Closed
gopherbot opened this issue Dec 2, 2009 · 5 comments
Closed

Add counter of heap allocations to malloc.Stats #367

gopherbot opened this issue Dec 2, 2009 · 5 comments

Comments

@gopherbot
Copy link
Contributor

by kaushansky:

Current Stats structure contains total amount of allocated memory and other info.
However, the 
number of allocations is missing, thus making analysis difficult. Expenses required to
support this 
counter are really minimal.
@rsc
Copy link
Contributor

rsc commented Dec 2, 2009

Comment 1:

Labels changed: added packagechange.

@rsc
Copy link
Contributor

rsc commented Dec 3, 2009

Comment 2:

Owner changed to r...@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2009

Comment 3:

This issue was closed by revision 7e5055c.

Status changed to Fixed.

Merged into issue #-.

@peterGo
Copy link
Contributor

peterGo commented Dec 4, 2009

Comment 4:

The fix has been applied to the malloc.go source code and is visible through hg pull -u.
The fix has not been applied to the documentation for the malloc package Stats structure.
http://golang.org/pkg/malloc/
type Stats struct {
    Alloc      uint64;
    Sys        uint64;
    Stacks     uint64;
    InusePages uint64;
    NextGC     uint64;
    EnableGC   bool;
}

@rsc
Copy link
Contributor

rsc commented Dec 4, 2009

Comment 5:

peter: true, the docs at golang.org always show the
current released state.  hg pull -u is ahead of the release.
to get docs corresponding to your local checkout
you can run your own godoc server
godoc --http=:8000
http://localhost:8000/

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants