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

compiler internal timer: print current phase + duration during compilation #212

Open
problame opened this issue Jan 21, 2019 · 0 comments
Open
Assignees

Comments

@problame
Copy link
Contributor

compiler-cli --compile myprog.mj
    10ms   Lexer
    20ms   Parser
    100ms  Semantic
    3.2s
    |---- 1s    Constant Propagation
    |---- 0.5s  CSE
    |---- 1.7   Inlining
    4.3s   LIR construction
    5.7s   AMD64 Backend

  Finished in 13.33s, output written to a.out.

  • gives the user an indication of what the compiler is doing
  • not forbidden for --compile-firm and --compile

ref #204

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

No branches or pull requests

2 participants