发明名称 |
Sampling with sample pacing |
摘要 |
A plurality of samples is generated in a computer to profile and record a plurality of events associated with the computer. For each of the plurality of samples, a plurality of partial samples is accumulated prior to occurrence of each of the plurality of events. In addition, a processor may process a current sample of the plurality of samples in response to (i) a completion of a previous sample of the plurality of samples and (ii) a predetermined threshold quantity of partial samples being accumulated. Embodiments of the invention include methods, systems and computer program products. |
申请公布号 |
US8799872(B2) |
申请公布日期 |
2014.08.05 |
申请号 |
US201012824217 |
申请日期 |
2010.06.27 |
申请人 |
International Business Machines Corporation |
发明人 |
Levine Frank E. |
分类号 |
G06F9/44 |
主分类号 |
G06F9/44 |
代理机构 |
Konrad, Raynes, Davda & Victor LLP |
代理人 |
Davda Janaki K.;Konrad, Raynes, Davda & Victor LLP |
主权项 |
1. A computer program product for sampling, the computer program product comprising:
a computer readable storage medium having computer readable program code embodied therewith, the computer readable storage medium is not a computer readable signal medium, the computer readable program code comprising: computer readable program code to set an affinity of a target thread such that the target thread runs on a current processor without being able to migrate to a different processor; in response to setting the affinity, computer readable program code to generate a plurality of samples in the computer system to profile and record a plurality of events associated with the target thread; and computer readable program code to accumulate, for each of the plurality of samples, a plurality of partial samples prior to occurrence of each of the plurality of events; and computer readable program code to process a current sample of the plurality of samples in response to (i) completing processing of a previous sample of the plurality of samples and (ii) an accumulated quantity of the pluralities of partial samples exceeding a predetermined threshold quantity. |
地址 |
Armonk NY US |