My question is simple: When I perform an operation, I need to get a list of all the functions that get called during its execution.
For example:
function foo()
...
rand(Int32)
end
function bar()
foo()
end
What I want is something like:
julia> show_stacktrace(bar())
- Call to bar() with no arguments
- Call to foo() with no arguments
- Call to Base.rand(T::Type) with argument 'Int32'
- ... # <- other calls within the Julia libraries
I’ve read the manual page of StackTraces but didn’t understand much. The examples in that page aren’t very clear and look different from what I want.
Thanks!