发明名称 Idle transitions sampling with execution context
摘要 A process generates a sample based on an event. The process identifies, with a dispatch monitor, a next dispatched monitored thread that is dispatched by a current processor. The process sets a processor affinity of the next dispatched monitored thread such that the next dispatched monitored thread runs only on the current processor without being able to migrate to a different processor. The process also retrieves, with a sampled thread that runs on the current processor, a next dispatched monitored thread call stack after the processor affinity of the next dispatched monitored thread has been set to the processor. The process restores the processor affinity of the next dispatched monitored thread after the next dispatched monitored thread call stack has been obtained.
申请公布号 US9176783(B2) 申请公布日期 2015.11.03
申请号 US201012786381 申请日期 2010.05.24
申请人 International Business Machines Corporation 发明人 Kuiper Kean G.;Levine Frank E.;Pineda Enio M.
分类号 G06F9/46;G06F9/44;G06F9/50 主分类号 G06F9/46
代理机构 Konrad, Raynes, Davda & Victor LLP 代理人 Davda Janaki K.;Konrad, Raynes, Davda & Victor LLP
主权项 1. A computer program product comprising a computer readable storage medium having a computer readable program, wherein the computer readable program when executed on a computer causes the computer to: set a processor affinity of a next dispatched monitored thread to a first value, wherein the next dispatched monitored thread executes on a current processor without being able to migrate to a different processor while a next dispatched monitored thread call stack is being retrieved; retrieve the next dispatched monitored thread call stack; and restore the processor affinity of the next dispatched monitored thread to a second value after the next dispatched monitored thread call stack has been retrieved, wherein the next dispatched monitored thread migrates to a different processor to continue execution; and record the next dispatched monitored thread call stack for a subsequently dispatched monitored thread.
地址 Armonk NY US