hdl icon indicating copy to clipboard operation
hdl copied to clipboard

Log time consumed by each phase (lexer, parser, analyzer, elab, codegen)

Open Jacajack opened this issue 2 years ago • 4 comments

Jacajack avatar Oct 26 '23 17:10 Jacajack

This could be fun

WojciechPtas avatar Oct 26 '23 17:10 WojciechPtas

Note: As parser uses lexer, we cannot measure exact time of lexing and parsing separately. We can measure time of lexing alone and time of parsing (and lexing)

WojciechPtas avatar Oct 26 '23 19:10 WojciechPtas

Note no 2. As firstly combining pass is run, we have to split sema timing in few phases Note no 3. It is probably good idea to measure semantical analysis time without the pass invoking api, am I right @Jacajack ?

WojciechPtas avatar Oct 26 '23 19:10 WojciechPtas

Yes, that's right

Jacajack avatar Oct 27 '23 13:10 Jacajack