Patent ID: 8453146

Claim:
A method comprising: providing data indicative of a counted value acquired by a hardware counter of a processing core during a time segment in which a plurality of tasks are active on the core; and in a processor-based machine, determining a likelihood that the counted value is attributable to a given task of the tasks during the time segment and attributing a portion of the counted value to the given task based at least in part on the determined likelihood, wherein determining the likelihood that the counted value is attributable to the given task comprises: dividing the time segment into time slices such that all of the tasks active at the beginning of each time slice were active at least until the end of the time slice; for each time slice, determining a likelihood that the counted value is attributable to the given task during the time slice; and determining samples of the counter for time boundaries of the time slices, comprising selectively interpolating at least one of the samples based at least in part on data indicative of a counter sample at another time.