Skip to content

Commit 6f617fb

Browse files
authored
Merge pull request #1706 from timholy/teh/precompiletools
Migrate from SnoopPrecompile to PrecompileTools
2 parents a15bf1a + 5d36ca1 commit 6f617fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
3636
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
3737
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
3838
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
39-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
39+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
4040
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
4141
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
4242
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
@@ -72,7 +72,7 @@ ProgressMeter = "1"
7272
RecursiveArrayTools = "2.31.1"
7373
Reexport = "1"
7474
Requires = "1"
75-
SnoopPrecompile = "1"
75+
PrecompileTools = "1"
7676
StaticArrays = "1"
7777
StatsBase = "0.32, 0.33"
7878
StructTypes = "1"

src/IncrementalInference.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ using ManifoldsBase
5757
# for BayesTree
5858
using MetaGraphs
5959
using Logging
60-
using SnoopPrecompile
60+
using PrecompileTools
6161

6262
# bringing in BSD 3-clause ccolamd
6363
include("ccolamd.jl")
@@ -253,7 +253,7 @@ function __init__()
253253
end
254254
end
255255

256-
@precompile_all_calls begin
256+
@compile_workload begin
257257
# In here put "toy workloads" that exercise the code you want to precompile
258258
fg = generateGraph_Kaess()
259259
initAll!(fg)

0 commit comments

Comments
 (0)