[New-bugs-announce] [issue24451] Add metrics to future objects (concurrent or asyncio?)

Joshua Harlow report at bugs.python.org
Sun Jun 14 19:16:11 CEST 2015

New submission from Joshua Harlow:

It would be quite useful to have some types of metrics attached to future objects so that callers could use them for various activities (scheduling repeated runs, post-analysis and such):

Some of the ones that I can think would be useful:

- 'submitted_at' (when the callback was submitted to the executor responsible for executing it)
- 'started_at' (when the executor actually started executing the callback, which is typically sometime after it was submitted)
- 'finished_at' (when the executor finished calling the callback)
- elapsed [finished_at - started_at] (the elapsed runtime of the callback)

Do others feel this would be useful (if so I can put up some patches)? Right now getting this information is pretty hard to get at (since the executors that exist currently do not expose this information and it is quite hard to obtain it in a reliable manner).

components: Library (Lib)
messages: 245345
nosy: Joshua.Harlow
priority: normal
severity: normal
status: open
title: Add metrics to future objects (concurrent or asyncio?)
type: enhancement

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list