cstjean / TraceCalls.jl

A debugging and profiling tool for Julia
Other
46 stars 4 forks source link

@trace_mutating #13

Closed cstjean closed 7 years ago

cstjean commented 7 years ago

We can generate another tracing version, that stores the arguments' printed representation if is_mutable(obj) returns true. We can have that is_mutable(x) = isbits(x) by default.

cstjean commented 7 years ago

Even better: keep @trace, but check is_mutable(x) for each.

Alternatively, store each argument as store_val(x), which defaults to x. We can do the same with the return value, although that might slow things down :|