diff --git a/Project.toml b/Project.toml index 50bc576..87e3e88 100644 --- a/Project.toml +++ b/Project.toml @@ -12,7 +12,7 @@ HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b" JuMP = "4076af6c-e467-56ae-b986-b466b2749572" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Requires = "ae029012-a4dd-5104-9daa-d747884805df" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d" [compat] @@ -23,7 +23,7 @@ Distributions = "0.17, 0.18, 0.19.1, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25" HiGHS = "0.1, 0.2, 0.3, 1" JuMP = "0.19, 0.20, 0.21, 0.22, 0.23, 1" Requires = "1" -SnoopPrecompile = "1" +PrecompileTools = "1" StatsModels = "0.4, 0.5, 0.6" julia = "1.4" diff --git a/src/precompile/precompile.jl b/src/precompile/precompile.jl index 347c9b9..59c2c45 100644 --- a/src/precompile/precompile.jl +++ b/src/precompile/precompile.jl @@ -1,10 +1,10 @@ -using SnoopPrecompile +using PrecompileTools -@precompile_setup begin +@setup_workload begin reg = createRegressionSetting(@formula(calls ~ year), phones) - @precompile_all_calls begin + @compile_workload begin ols(reg) asm2000(reg) atkinson94(reg)