Skip to content

cmd/trace: show end stack traces #70570

@felixge

Description

@felixge

Go version

go version devel go1.24-733df2bc0a 2024-11-25 02:23:41 +0000 darwin/arm64

Output of go env in your module/workspace:

n/a

What did you do?

I generated an execution trace for a simple Go program that has a single goroutine that runs for 10ms on CPU followed by 10ms of sleep in a loop.

What did you see happen?

Clicking on the first three goroutine spans, I see:

Showing only the start stack traces also makes it impossible to see the last stack trace produced by a goroutine.

What did you expect to see?

Showing both start and end stack traces would make it much easier to understand the trace:

update: I realized this is not just a "nice to have" but actually a regression compared to go1.22, see comment below.

cc @mknyszek @prattmic @nsrip-dd - CL for this is submitted below

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions