From 9e1ae95bc475fdceadb7ca147e06429e1335ac26 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 15:53:06 -0500 Subject: [PATCH] Migrate from SnoopPrecompile to PrecompileTools --- Project.toml | 4 ++-- src/ComradeBase.jl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index d575305..05519d3 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,7 @@ DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" RectiGrids = "8ac6971d-971d-971d-971d-971d5ab1a71a" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a" @@ -21,7 +21,7 @@ ChainRulesCore = "1" DocStringExtensions = "0.8, 0.9" FillArrays = "0.12, 0.13" RectiGrids = "0.1" -SnoopPrecompile = "1" +PrecompileTools = "1" StaticArrays = "1" StructArrays = "0.6" julia = "1.6" diff --git a/src/ComradeBase.jl b/src/ComradeBase.jl index c7820e7..2b727dc 100644 --- a/src/ComradeBase.jl +++ b/src/ComradeBase.jl @@ -7,7 +7,7 @@ using StaticArrays using StructArrays using RectiGrids using Statistics -using SnoopPrecompile +using PrecompileTools export visibility, intensitymap, intensitymap!, StokesParams, CoherencyMatrix, evpa, m̆, SingleStokes, @@ -19,12 +19,12 @@ include("polarizedtypes.jl") include("images/images.jl") include("visibilities.jl") -@precompile_setup begin +@setup_workload begin fovx = 10.0 fovy = 12.0 nx = 10 ny = 10 - @precompile_all_calls begin + @compile_workload begin p = imagepixels(fovx, fovy, nx, ny) g = GriddedKeys(p) imgI = IntensityMap(rand(10, 10), g)