Skip to content

cmd/pprof: make flamegraph page the starting one in http UI #74774

@ethercrow

Description

@ethercrow

Go version

all

Output of go env in your module/workspace:

Irrelevant

What did you do?

When you do go tool pprof -http 127.0.0.1:6611 my_binary my_profile.pbgz

What did you see happen?

Your browser shows you this:

Image

so that you have to go the address bar and type /flamegraph at the end to see the profile.

Or if you jump through the hoops of installing graphviz, first you see a page with a graph that you don't understand. At least I have never met a person who really understands it. And pretty much every talk on go pprof that I've seen includes a statement like "just ignore this and switch to the flamegraph view".

What did you expect to see?

So why not make the flamegraph view default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.ToolProposalIssues describing a requested change to a Go tool or command-line program.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions