Skip to content

Commit 39fc509

Browse files
author
KristofferC
committed
add a timing zone for call_require
1 parent 1cc10a6 commit 39fc509

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/timing.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ JL_DLLEXPORT void jl_timing_puts(jl_timing_block_t *cur_block, const char *str);
182182
X(CODEGEN_LLVM) \
183183
X(CODEGEN_Codeinst) \
184184
X(CODEGEN_Workqueue) \
185+
X(LOAD_Require) \
185186
X(LOAD_Sysimg) \
186187
X(LOAD_Pkgimg) \
187188
X(LOAD_Processor) \

src/toplevel.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ static void body_attributes(jl_array_t *body, int *has_ccall, int *has_defs, int
461461

462462
static jl_module_t *call_require(jl_module_t *mod, jl_sym_t *var) JL_GLOBALLY_ROOTED
463463
{
464+
JL_TIMING(LOAD_IMAGE, LOAD_Require);
465+
jl_timing_printf(JL_TIMING_CURRENT_BLOCK, "%s", jl_symbol_name(var));
466+
464467
static jl_value_t *require_func = NULL;
465468
int build_mode = jl_generating_output();
466469
jl_module_t *m = NULL;

0 commit comments

Comments
 (0)