Skip to content

Commit

Permalink
Add @snoop_all to run snoopi, snoopc, snoopl
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Jul 25, 2021
1 parent 74371aa commit 25c2d6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SnoopCompileCore/src/SnoopCompileCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions SnoopCompileCore/src/snoop_all.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 25c2d6e

Please sign in to comment.