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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24451>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to