Expose time stats

This commit is contained in:
Krzosa Karol
2023-01-01 19:59:27 +01:00
parent aa994c999a
commit 1121e4aa84
4 changed files with 28 additions and 26 deletions

View File

@@ -14,8 +14,6 @@
@! Bring the Table<>
@! Look into List, check if that's neccessary
@! Compute time statistics inside context and expose them properly
Probably want to implement a Red Black Tree then
probably I wouldn't need any sort of heap based
data structure.
@@ -79,15 +77,15 @@ struct Core_Ctx{
String working_folder;
List<Token *> files_to_link;
F64 generating_time_begin;
F64 generating_time_end;
F64 resolving_time_begin;
F64 resolving_time_end;
F64 total_time;
F64 init_ctx_time_begin;
F64 init_ctx_time_end;
F64 parsing_time_begin;
F64 parsing_time_end;
struct {
F64 typechecking;
F64 code_generation;
F64 total;
F64 init_context;
F64 parsing;
F64 start;
} time;
bool color_codes_enabled;
bool debugger_break_on_compiler_error;