Skip to content

Conversation

@nevkontakte
Copy link
Member

This will be a helpful tool for performance issue investigations.

In order to implement this I also had to refactor use of os.Exit() in the main package, since it was preventing Cobra's post-run functions from executing.

It prevents usual cleanup idioms like deferrals and Cobra's PostRun
functions from executing. Instead, we rely on Cobra's RunE interface,
which allows returning errors from commands, which are propagated to the
top level and can be handled at the top level.
@nevkontakte nevkontakte requested a review from flimzy April 17, 2022 20:17
@nevkontakte nevkontakte enabled auto-merge April 17, 2022 20:17
@nevkontakte nevkontakte merged commit b4356dc into gopherjs:master Apr 18, 2022
@nevkontakte nevkontakte deleted the pprof branch April 18, 2022 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants