diff --git a/SnoopCompileCore/src/SnoopCompileCore.jl b/SnoopCompileCore/src/SnoopCompileCore.jl index 032dd8a8..00d0c47f 100644 --- a/SnoopCompileCore/src/SnoopCompileCore.jl +++ b/SnoopCompileCore/src/SnoopCompileCore.jl @@ -23,4 +23,8 @@ if VERSION >= v"1.6.0-DEV.1192" # https://github.com/JuliaLang/julia/pull/37136 include("snoopl.jl") end +if VERSION >= v"1.6.0-DEV.1192" # https://github.com/JuliaLang/julia/pull/37136 + include("snoop_all.jl") +end + end diff --git a/SnoopCompileCore/src/snoop_all.jl b/SnoopCompileCore/src/snoop_all.jl new file mode 100644 index 00000000..548deb81 --- /dev/null +++ b/SnoopCompileCore/src/snoop_all.jl @@ -0,0 +1,11 @@ +# TODO: Add `@snoopc` into the mix +macro snoop_all(csv_f, yaml_f, commands) + esc(quote + v = @snoopi_deep begin + @snoopl pspawn=false $csv_f $yaml_f begin + $commands + end + end; + v + end) +end \ No newline at end of file