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

josharian opened this issue Mar 5, 2019 · 1 comment


Copy link

@josharian josharian commented Mar 5, 2019

-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 label Mar 5, 2019
@josharian josharian added this to the Go1.13 milestone Mar 5, 2019
Copy link

@egonelbre egonelbre commented Mar 5, 2019

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 removed this from the Go1.13 milestone Jul 8, 2019
@andybons andybons added this to the Go1.14 milestone Jul 8, 2019
@rsc rsc removed this from the Go1.14 milestone Oct 9, 2019
@rsc rsc added this to the Backlog milestone Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

4 participants