Skip to content

Commit 25c2d6e

Browse files
committed
Add @snoop_all to run snoopi, snoopc, snoopl
1 parent 74371aa commit 25c2d6e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

SnoopCompileCore/src/SnoopCompileCore.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ if VERSION >= v"1.6.0-DEV.1192" # https://github.com/JuliaLang/julia/pull/37136
2323
include("snoopl.jl")
2424
end
2525

26+
if VERSION >= v"1.6.0-DEV.1192" # https://github.com/JuliaLang/julia/pull/37136
27+
include("snoop_all.jl")
28+
end
29+
2630
end

SnoopCompileCore/src/snoop_all.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# TODO: Add `@snoopc` into the mix
2+
macro snoop_all(csv_f, yaml_f, commands)
3+
esc(quote
4+
v = @snoopi_deep begin
5+
@snoopl pspawn=false $csv_f $yaml_f begin
6+
$commands
7+
end
8+
end;
9+
v
10+
end)
11+
end

0 commit comments

Comments
 (0)