This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: support RUSAGE_THREAD as a constant in the resource module
Type: enhancement Stage: resolved
Components: Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, rbcollins
Priority: normal Keywords: patch

Created on 2010-11-17 04:59 by rbcollins, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
rusage-thread.patch rbcollins, 2010-11-17 13:39 Add RUSAGE_THREAD to resource.so
Messages (2)
msg121336 - (view) Author: Robert Collins (rbcollins) * (Python committer) Date: 2010-11-17 04:59
RUSAGE_THREAD (since Linux 2.6.26)
              Return resource usage statistics for the calling thread.

This is very handy for multi threaded apps in determining runtime in a thread, page faults from the thread etc.
msg121364 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-11-17 16:20
Thank you! I've committed the patch in r86493.
History
Date User Action Args
2022-04-11 14:57:09adminsetgithub: 54649
2010-11-17 16:20:03pitrousetstatus: open -> closed

versions: + Python 3.2
nosy: + pitrou

messages: + msg121364
resolution: fixed
stage: resolved
2010-11-17 13:39:22rbcollinssetfiles: + rusage-thread.patch
keywords: + patch
2010-11-17 04:59:47rbcollinscreate