STINNER Victor added the comment: > I did it this way because I would like to consider adding a third mode, which > would only trigger tracing for interesting control-flow events, namely steps > for which the previous instruction was a branch.
Hum, let's use https://en.wikipedia.org/wiki/Basic_block terminology. The callback would be called when you enter and exit a basic block? Or only on exit? Only on conditional branches? Or also on unconditional branches? In term of instructions, can give examples of instructions which would be traced or not? IMHO the two instruction level modes would be useful. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29400> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com