Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support RUSAGE_THREAD as a constant in the resource module #54649

Closed
rbtcollins opened this issue Nov 17, 2010 · 2 comments
Closed

support RUSAGE_THREAD as a constant in the resource module #54649

rbtcollins opened this issue Nov 17, 2010 · 2 comments
Labels
type-feature A feature request or enhancement

Comments

@rbtcollins
Copy link
Member

BPO 10440
Nosy @pitrou, @rbtcollins
Files
  • rusage-thread.patch: Add RUSAGE_THREAD to resource.so
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-11-17.16:20:03.316>
    created_at = <Date 2010-11-17.04:59:47.281>
    labels = ['type-feature']
    title = 'support RUSAGE_THREAD as a constant in the resource module'
    updated_at = <Date 2010-11-17.16:20:03.299>
    user = 'https://github.com/rbtcollins'

    bugs.python.org fields:

    activity = <Date 2010-11-17.16:20:03.299>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-11-17.16:20:03.316>
    closer = 'pitrou'
    components = []
    creation = <Date 2010-11-17.04:59:47.281>
    creator = 'rbcollins'
    dependencies = []
    files = ['19624']
    hgrepos = []
    issue_num = 10440
    keywords = ['patch']
    message_count = 2.0
    messages = ['121336', '121364']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'rbcollins']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue10440'
    versions = ['Python 3.2']

    @rbtcollins
    Copy link
    Member Author

    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.

    @rbtcollins rbtcollins added the type-feature A feature request or enhancement label Nov 17, 2010
    @pitrou
    Copy link
    Member

    pitrou commented Nov 17, 2010

    Thank you! I've committed the patch in r86493.

    @pitrou pitrou closed this as completed Nov 17, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants