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

cmd/compile: provide flags to request just inlining or just escape analysis info #30585

Open
josharian opened this issue Mar 5, 2019 · 1 comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@josharian
Copy link
Contributor

-m and -m -m respectively ask the compiler to print and explain its inlining and escape analysis decisions. This is very useful. But almost always I am interested in inlining or in escape analysis, but not both, so I end up grepping through the output.

We should keep the existing flags, since they are used in documentation and blog posts the world over. But I'd like to add new flags to print just inlining or just escape analysis. (-ml and -me?)

Opinions? Bikesheds?

@josharian josharian added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 5, 2019
@josharian josharian added this to the Go1.13 milestone Mar 5, 2019
@egonelbre
Copy link
Contributor

I usually prefer to inspect both at the same time to understand where things can be optimized. And wrote a separate tool for visualizing both. So maybe the better solution would be some nicer integration to editors rather than introducing new flags? Although, since the -m is preserved it might an orthogonal concern.

@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: Triage Backlog
Development

No branches or pull requests

5 participants