Skip to content

Commit

Permalink
Fix code example layout for (log|print)_iter_durations()
Browse files Browse the repository at this point in the history
  • Loading branch information
Suor committed Sep 10, 2015
1 parent ec0db7b commit e3dbc93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ Debugging
.. function:: log_iter_durations(seq, print_func, label=None)
print_iter_durations(seq, label=None)

Wraps iterable ``seq`` into generator logging duration of processing of each item:
Wraps iterable ``seq`` into generator logging duration of processing of each item::


for item in print_iter_durations(seq, label='hard work'):
# ... do work
do_smth(item)

# 121 ms in iteration 0 of hard work
# 143 ms in iteration 1 of hard work
Expand Down

0 comments on commit e3dbc93

Please sign in to comment.