Expose time stats
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user