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

Fix current-stage compiler stats output #4506

Merged
merged 1 commit into from Jun 4, 2017

Conversation

RX14
Copy link
Contributor

@RX14 RX14 commented Jun 3, 2017

Before be945b5, --stats output would print the current stage name while it was executing. This is useful for debugging compiler hangs and tracking the progress of the compiler without --progress. After that commit, the progress output would only print after the stage had fully completed, meaning you had to rely on --progress to track compiler progress.

This patch fixes this regression by printing the stage name (with no times or memory figures) before the stage starts and resetting the cursor to the beginning of the line. If both --progress and --stats are specified, this pre-stage line isn't printed as it would just be overwritten by --progress output anyway.

@RX14
Copy link
Contributor Author

RX14 commented Jun 3, 2017

@asterite looks like master is broken. :(

@asterite
Copy link
Member

asterite commented Jun 4, 2017

@RX14 Sorry about that, it's fixed now. Could you rebase? :-) And thank you for the fix!

Before be945b5, --stats output would print the current stage name while it was
executing. This is useful for debugging compiler hangs and tracking the progress
of the compiler without --progress. After that commit, the progress output would
only print after the stage had fully completed, meaning you had to rely on
--progress to track compiler progress.

This patch fixes this regression by printing the stage name (with no times or
memory figures) before the stage starts and resetting the cursor to the
beginning of the line. If both --progress and --stats are specified, this
pre-stage line isn't printed as it would just be overwritten by --progress
output anyway.
@RX14
Copy link
Contributor Author

RX14 commented Jun 4, 2017

@asterite done!

@asterite asterite merged commit 0a375f5 into crystal-lang:master Jun 4, 2017
@mverzilli mverzilli added this to the Next milestone Jun 4, 2017
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.

None yet

3 participants