Skip to content

runtime/pprof: -runtime flag support missing #19927

@josharian

Description

@josharian

In Go 1.8, if I wanted to see where in the runtime allocations came from, I could use memory profiling and then run go tool pprof with the -runtime flag. The -runtime flag is absent on tip, and it appears (from trying out the 1.8 pprof tool on the tip profiles) that the data is not being recorded either. This is an impediment to optimizing the runtime.

Perhaps unrelatedly, the 1.8 pprof tool usefully lists the heap profile display modes in its help text:

Sample value selection option (for heap profiles):
  -inuse_space      Display in-use memory size
  -inuse_objects    Display in-use object counts
  -alloc_space      Display allocated memory size
  -alloc_objects    Display allocated object counts

The tip pprof tool does not.

cc @rsc @matloob

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions