Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from SnoopPrecompile to PrecompileTools #263

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/drawings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -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)
Expand Down