Twine (twine v0.5.2)

Twine is a function call tracer that wraps recon_trace.

Summary

Functions

Clear all existing traces.

Placeholder for ergonomics so iex does not attempt to evaluate the call if one argument is passed. This has no use.

Print all calls that match the given function call either the given number of times (e.g. 10 will print 10 calls), or at a given rate (e.g. {10, 1000} will print 10 calls per second at most). The calls given can also have patterns and/or guards so you can match specific calls.

Identical to print_calls/2, but instead of printing the calls, it sends them to the calling process. The message will be a TracedCall structure. If track_outcome is specified as false, then outcome on the structure will be nil.

Functions

clear()

Clear all existing traces.

recv_calls(call, rate, opts \\ [])

(macro)

Identical to print_calls/2, but instead of printing the calls, it sends them to the calling process. The message will be a TracedCall structure. If track_outcome is specified as false, then outcome on the structure will be nil.