diff --git a/Project.toml b/Project.toml index b4aeb8aa..ddfa5516 100644 --- a/Project.toml +++ b/Project.toml @@ -15,7 +15,7 @@ LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Requires = "ae029012-a4dd-5104-9daa-d747884805df" Rsvg = "c4c386cf-5103-5370-be45-f3a111cca3b8" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" [compat] Cairo = "0.7, 0.8, 1.0" @@ -26,7 +26,7 @@ Juno = "0.7, 0.8" LaTeXStrings = "1.1, 1.2, 1.3" Requires = "1, 1.1, 1.2, 1.3" Rsvg = "1.0" -SnoopPrecompile = "1" +PrecompileTools = "1" julia = "1.6" [extras] diff --git a/src/drawings.jl b/src/drawings.jl index 064fe680..9f0570d3 100644 --- a/src/drawings.jl +++ b/src/drawings.jl @@ -153,7 +153,7 @@ end # stored as item at index _current_drawing_index() in a constant global array function _get_current_drawing_save() - # check if drawing is not corrupted (has been observed using SnoopPrecompile) + # check if drawing is not corrupted (has been observed using PrecompileTools) # checking fields: # surface::CairoSurface # cr::CairoSurface diff --git a/src/precompile.jl b/src/precompile.jl index 11d149c3..a935cf41 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,8 +1,8 @@ -import SnoopPrecompile +import PrecompileTools -@info "SnoopPrecompile is analyzing Luxor.jl code..." +@info "PrecompileTools is analyzing Luxor.jl code..." -SnoopPrecompile.@precompile_all_calls begin +PrecompileTools.@compile_workload begin ngon(O, 100, 3, vertices=true) @draw circle(1.0, 1.2, 1.9, action=:fill) noise(1)