File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -643,33 +643,36 @@ end
643643# here so it's possible to time/trace all imports, including InteractiveUtils and its deps
644644macro time_imports (ex)
645645 quote
646- try
647- Base. Threads. atomic_add! (Base. TIMING_IMPORTS, 1 )
648- $ (esc (ex))
649- finally
646+ Base. Threads. atomic_add! (Base. TIMING_IMPORTS, 1 )
647+ @__tryfinally (
648+ # try
649+ $ (esc (ex)),
650+ # finally
650651 Base. Threads. atomic_sub! (Base. TIMING_IMPORTS, 1 )
651- end
652+ )
652653 end
653654end
654655
655656macro trace_compile (ex)
656657 quote
657- try
658- ccall (:jl_force_trace_compile_timing_enable , Cvoid, ())
659- $ (esc (ex))
660- finally
658+ ccall (:jl_force_trace_compile_timing_enable , Cvoid, ())
659+ @__tryfinally (
660+ # try
661+ $ (esc (ex)),
662+ # finally
661663 ccall (:jl_force_trace_compile_timing_disable , Cvoid, ())
662- end
664+ )
663665 end
664666end
665667
666668macro trace_dispatch (ex)
667669 quote
668- try
669- ccall (:jl_force_trace_dispatch_enable , Cvoid, ())
670- $ (esc (ex))
671- finally
670+ ccall (:jl_force_trace_dispatch_enable , Cvoid, ())
671+ @__tryfinally (
672+ # try
673+ $ (esc (ex)),
674+ # finally
672675 ccall (:jl_force_trace_dispatch_disable , Cvoid, ())
673- end
676+ )
674677 end
675678end
You can’t perform that action at this time.
0 commit comments