ionelmc / python-hunter

Hunter is a flexible code tracing toolkit.
https://python-hunter.readthedocs.io/
BSD 2-Clause "Simplified" License
796 stars 46 forks source link

From-point tracing #21

Closed ionelmc closed 5 years ago

ionelmc commented 8 years ago

Something that starts tracing everything after a specific event, maybe with optional filtering.

Eg:

From(Q(kind='call', function='bar'), Q(module='foo'))

would mean "start tracing everything from foo after foo.bar is called".

ionelmc commented 8 years ago

Or maybe a better way (that would also not make CallPrinter misbehave after foo.bar() returns): "start tracing everything that happens inside foo.bar()".