Skip to content

cmd/trace: add a name/desc to goroutines which are inactive when get a pprof trace #49994

@yifhao

Description

@yifhao

What version of Go are you using (go version)?

$ go version
nothing to do with go version

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
nothing to do with go env

What did you do?

I got a pprof trace, then watch it on browser. I saw the last line 'N=xxx' with no link or name.
it's easy to make a mistake about what it is meaning, many people may think it's the total number of goroutines.

What did you expect to see?

I read the source code, and then find: the last line is the num of goroutines which are created before trace taken, and inactive during the trace.

I think may add a name/desc to it, like: inactive when trace.
in httpGoroutines func add:
image
and then see:
image

What did you see instead?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions