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

runtime/trace, cmd/trace: provide a per-M view #44074

Open
prattmic opened this issue Feb 2, 2021 · 2 comments
Open

runtime/trace, cmd/trace: provide a per-M view #44074

prattmic opened this issue Feb 2, 2021 · 2 comments

Comments

@prattmic
Copy link
Member

@prattmic prattmic commented Feb 2, 2021

The Go execution tracer currently provides a per-P view (default, via /trace) or a per-G view (via /goroutines).

When investigating issues with the scheduler I've frequently found myself wanting a per-M view, as that is the level that the scheduler truly operates on. This makes it easier to see when Ps switch between Ms, when Ms stop, etc.

For #43997, I found the need compelling enough that I built a one-off CL for it in http://golang.org/cl/286972. That CL adds an argument to (almost) every trace type, so I don't think it is acceptable as a general solution, but it would be nice to have a more complete version we could include for real.

cc @mknyszek @aclements @hyangah

@gopherbot
Copy link

@gopherbot gopherbot commented Feb 2, 2021

Change https://golang.org/cl/286972 mentions this issue: runtime,cmd/trace: add M id to traces

Loading

@zhouguangyuan0718
Copy link
Contributor

@zhouguangyuan0718 zhouguangyuan0718 commented Nov 29, 2021

Sorry for bother. Is this feature will be accepted in the future?
@prattmic

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants