File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -101,21 +101,11 @@ function run(tape::Tape, args...)
101101end
102102
103103# if we should trace into a function
104- NEVER_TRACING_MODULES = [@__MODULE__ , Base, Core]
105- TRACING_MODULES = Set ()
104+ # TODO :
105+ # overload (instr::Instruction{F})() to specify
106+ # which function to trace into
106107function trace_into end
107108trace_into (x) = false
108- trace_into (m:: Vararg{Module, N} ) where N = push! (TRACING_MODULES, m... )
109- function trace_into (f:: Function )
110- mods = map (x-> x. module, methods (f))
111- dont_trace = any (mods) do m
112- m in NEVER_TRACING_MODULES
113- end
114- dont_trace && return false
115- any (mods) do m
116- m in TRACING_MODULES
117- end
118- end
119109
120110function run_and_record! (tape:: Tape , f, args... )
121111 f = val (f) # f maybe a Boxed closure
You can’t perform that action at this time.
0 commit comments