Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We have some fairly intense functions that needs to be profiled with realistic data and io conditions. I've been doing that by hand, line by line in the shell.

I just tried wrapping this around one of these functions in the django shell (actually shell_plus, but same thing). Just imported pysnooper, created a new function using `new_f = pysnooper.snoop()(original_f)` and called new_f on the realistic data and got a nice printout that included values and times.

Very useful.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: