File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2204,6 +2204,7 @@ static void record_precompile_statement(jl_method_instance_t *mi)
22042204{
22052205 static ios_t f_precompile ;
22062206 static JL_STREAM * s_precompile = NULL ;
2207+ static time_t start_t = 0 ;
22072208 jl_method_t * def = mi -> def .method ;
22082209 if (jl_options .trace_compile == NULL )
22092210 return ;
@@ -2221,11 +2222,13 @@ static void record_precompile_statement(jl_method_instance_t *mi)
22212222 jl_errorf ("cannot open precompile statement file \"%s\" for writing" , t );
22222223 s_precompile = (JL_STREAM * ) & f_precompile ;
22232224 }
2225+ start_t = time (NULL );
22242226 }
22252227 if (!jl_has_free_typevars (mi -> specTypes )) {
2228+ time_t up_t = time (NULL ) - start_t ;
22262229 jl_printf (s_precompile , "precompile(" );
22272230 jl_static_show (s_precompile , mi -> specTypes );
2228- jl_printf (s_precompile , ")\n" );
2231+ jl_printf (s_precompile , ") # %lds \n" , up_t );
22292232 if (s_precompile != JL_STDERR )
22302233 ios_flush (& f_precompile );
22312234 }
You can’t perform that action at this time.
0 commit comments