# A plugin for task timings

**URL:** <https://forum.ansible.com/t/a-plugin-for-task-timings/14598>\
**Category:** Ansible Project\
**Created:** [February 19, 2014, 4:19am UTC](https://forum.ansible.com/t/a-plugin-for-task-timings/14598 "2014-02-19T04:19:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jharrod\_LaFon](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jharrod\_LaFon](https://forum.ansible.com/u/Jharrod_LaFon)\
**Post date:** [February 19, 2014, 4:19am UTC](https://forum.ansible.com/t/a-plugin-for-task-timings/14598/1 "2014-02-19T04:19:53Z")

</div>

I’m posting this here in case anyone finds it useful. I’ve written a very simple plugin that prints out the most expensive tasks, and their timings.

The source is on GitHub at [https://github.com/jlafon/ansible-profile](https://github.com/jlafon/ansible-profile).

Short blog post: [http://jlafon.io/ansible-profiling.html](http://jlafon.io/ansible-profiling.html)

-Jharrod LaFon

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [February 19, 2014, 12:55pm UTC](https://forum.ansible.com/t/a-plugin-for-task-timings/14598/2 "2014-02-19T12:55:20Z")

</div>

That’s pretty remarkable how small the code is.

Well done!

[https://github.com/jlafon/ansible-profile/blob/master/callback\_plugins/profile\_tasks.py](https://github.com/jlafon/ansible-profile/blob/master/callback_plugins/profile_tasks.py)
