trace-make-advice

trace-make-advice is a compiled Lisp function in `trace.el'.

(trace-make-advice FUNCTION BUFFER BACKGROUND CONTEXT)

Build the piece of advice to be added to trace FUNCTION.
FUNCTION is the name of the traced function.
BUFFER is the buffer where the trace should be printed.
BACKGROUND if nil means to display BUFFER.
CONTEXT if non-nil should be a function that returns extra info that should
be printed along with the arguments in the trace.