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

Comments

Projects
None yet
2 participants
@josharian
Copy link
Contributor

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 this to the Go1.13 milestone Mar 5, 2019

@egonelbre

This comment has been minimized.

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.