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
643
643
# here so it's possible to time/trace all imports, including InteractiveUtils and its deps
644
644
macro time_imports (ex)
645
645
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
650
651
Base. Threads. atomic_sub! (Base. TIMING_IMPORTS, 1 )
651
- end
652
+ )
652
653
end
653
654
end
654
655
655
656
macro trace_compile (ex)
656
657
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
661
663
ccall (:jl_force_trace_compile_timing_disable , Cvoid, ())
662
- end
664
+ )
663
665
end
664
666
end
665
667
666
668
macro trace_dispatch (ex)
667
669
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
672
675
ccall (:jl_force_trace_dispatch_disable , Cvoid, ())
673
- end
676
+ )
674
677
end
675
678
end
You can’t perform that action at this time.
0 commit comments