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/go: add support for tracing to visualize build behavior #38714

Open
matloob opened this issue Apr 27, 2020 · 4 comments
Open

cmd/go: add support for tracing to visualize build behavior #38714

matloob opened this issue Apr 27, 2020 · 4 comments

Comments

@matloob
Copy link
Contributor

@matloob matloob commented Apr 27, 2020

I'd like to add a GODEBUG option to cmd/go to emit traces so that we can visualize build behavior. For now it will emit a runtime trace but maybe in the future we might use @ianthehat's events library. Maybe in the future it could become a flag, but for now adding it to GODEBUG should be safe in the sense that it doesn't affect the formal interface of the go command.

@matloob
Copy link
Contributor Author

@matloob matloob commented Apr 27, 2020

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 27, 2020

Change https://golang.org/cl/230378 mentions this issue: cmd/go: add a trace option to GODEBUG

@josharian
Copy link
Contributor

@josharian josharian commented Apr 27, 2020

Tracing like #15736?

@matloob
Copy link
Contributor Author

@matloob matloob commented Apr 28, 2020

Yes, though my understanding is that --debug-actiongraph only has timing information for build actions, and doesn't cover cmd/go's behavior before actions are executed.

@andybons andybons added this to the Unplanned milestone Apr 28, 2020
@andybons andybons added the GoCommand label Apr 28, 2020
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
4 participants
You can’t perform that action at this time.