Add timing information on traced function#34
Add timing information on traced function#34mistotebe wants to merge 1 commit intozestyping:masterfrom
Conversation
|
Hi @mistotebe Thanks for your patch! It looks like it currently isn't pep8 clean, can you please fix that? You should be able to run a |
e60ad96 to
433cab2
Compare
|
Hi @mithro, I've pushed an updated version. I ran make test, did not notice there being a pep8 target. Should be clean now. |
|
Generally looks good. Can you think of any way to add a decent test for this functionality? |
|
It shows you the timing so probably not, I could try adding a sleep() to it and check that it shows at least as much. Not sure. |
|
There is an alternative approach to the logging that might actually be even more useful (potentially even replacing the "insert a blank line if we had more than 5 s between messages" bit):
|
56ddf51 to
d9f393c
Compare
q is very helpful when zeroing in on performance/timeout issues as well, make it even better by explicitly logging the time spent in the function.