From 32e684a3a0bbd20821ce155edd296833b92f8100 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 15:51:16 -0500 Subject: [PATCH] Migrate from SnoopPrecompile to PrecompileTools --- Project.toml | 4 ++-- src/C3D.jl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 0eb5eca..844011c 100644 --- a/Project.toml +++ b/Project.toml @@ -7,10 +7,10 @@ version = "0.7.3" DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" VaxData = "a6f58a78-e649-57e2-81bc-1d865c7b74f7" [compat] -SnoopPrecompile = "1" +PrecompileTools = "1" VaxData = "0.5,0.6,1" julia = "1.8" diff --git a/src/C3D.jl b/src/C3D.jl index 9b4548f..b2459fc 100644 --- a/src/C3D.jl +++ b/src/C3D.jl @@ -1,6 +1,6 @@ module C3D -using VaxData, SnoopPrecompile, LazyArtifacts +using VaxData, PrecompileTools, LazyArtifacts @enum Endian LE=1 BE=2 @@ -500,10 +500,10 @@ function _readparams(fn::String, io::IO) return (groups, header, FEND, FType) end -@precompile_setup begin +@setup_workload begin path, io = mktemp() close(io) - @precompile_all_calls begin + @compile_workload begin f = readc3d(joinpath(artifact"sample01", "Eb015pr.c3d")) readc3d(joinpath(artifact"sample01", "Eb015pi.c3d")) readc3d(joinpath(artifact"sample01", "Eb015sr.c3d"))