Commit 714b7777 by Feanil Patel

Merge pull request #2736 from edx/feanil/limit_timing_printout

Print only the 10 slowest tasks instead of all of them.
parents 1e7d6753 eb6f2b74
......@@ -94,7 +94,7 @@ class CallbackModule(object):
)
# Log the time of each task
for name, elapsed in results:
for name, elapsed in results[:10]:
logger.info(
"{0:-<80}{1:->8}".format(
'{0} '.format(name),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment