When profiling a Python app, it’s helpful to have a decorator that wraps functions and reports details about their performance. Assuming you are doing this to report some metric about the function, you’ll want the decorator to work with both bound and unbound functions (IE, regular functions and methods of a class), and if the …
-
Elsewhere
-
Recent Posts
- How to get the name of the class of a decorated method in Python
- Make Sublime Text 2 More like Vim: Wrap Code, Go To Last Edit, and More
- Sharp Edges: Protecting Ourselves from Digital Publishing
- iA Writer and Notational Velocity
- How to Fix Slow Scrolling in Vim and MacVim on OS X
- Instant Django Dev Environments with Tmux, Tmuxinator, and Virtualenvwrapper