Closed GoogleCodeExporter closed 9 years ago
time.sleep() is a builtin function. You should set builtins=True in start()
call:
yappi.start(builtins=True) then time.sleep will be shown:
Clock type: wall
Ordered by: totaltime, desc
name #n tsub ttot tavg
issue44.py:21 test 1 0.000021 0.499722 0.499722
issue44.py:17 bar 5 0.000024 0.499684 0.099937
time.sleep 5 0.499660 0.499660 0.099932
issue44.py:6 foo 1 0.000011 0.299701 0.299701
issue44.py:12 goo 1 0.000005 0.199999 0.199999
Original comment by sum...@gmail.com
on 4 Feb 2014 at 2:40
Original comment by sum...@gmail.com
on 4 Feb 2014 at 2:40
Original comment by sum...@gmail.com
on 4 Feb 2014 at 2:43
Original comment by sum...@gmail.com
on 4 Feb 2014 at 2:43
Indeed! tested; works; confirming that suggested kwarg sovles the issue.
Original comment by dim...@gmail.com
on 4 Feb 2014 at 2:43
Original comment by sum...@gmail.com
on 4 Feb 2014 at 2:44
Original issue reported on code.google.com by
dim...@gmail.com
on 4 Feb 2014 at 1:14Attachments: