jlafon / ansible-profile

An Ansible plugin for timing tasks
http://jlafon.io/ansible-profiling.html
MIT License
342 stars 57 forks source link

Keep a running total of each job runtime. #18

Open jwg4 opened 6 years ago

jwg4 commented 6 years ago

There is a problem with the current version if several jobs have the same name, or if one job is run multiple times. Only the final runtime will be recorded. These values are also used in the final message, meaning the elapsed time could be very different to the actual time the script has taken to run,

Instead, this change keeps track of the total for each job name. So the scoreboard at the end shows the total for every run of a job with that name, and the elapsed time shows the total time across all jobs which ran.

jwg4 commented 6 years ago

Any feedback on this? Thanks