# US 2010/0251160 A1 · Measurement and reporting of performance event rates

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0251160 A1
- Document ID: US20100251160A1
- Status: Published application
- Kind: A1
- Application number: 12/411,435
- Filed: 2009-03-26
- Published: 2010-09-30
- Earliest claimed: 2009-03-26
- Assignees: Microsoft Corporation
- Inventors: Hazim Shafi; Khaled S. Sedky
- Web page: https://patentgrep.com/patent/US20100251160A1

## CPC

- G06F 11/328: {Computer systems status display (G06F11/327 takes precedence)}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 2201/835: Timestamp
- G06F 2201/86: Event-based monitoring
- G06F 2201/88: Monitoring involving counting
- G06F 2201/885: Monitoring specific for caches
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems are disclosed for measuring performance event rates at a computer and reporting the performance event rates using timelines. A particular method tracks, for a time period, the occurrences of a particular event at a computer. Event rates corresponding to different time segments within the time period are calculated, and the time segments are assigned colors based on their associated event rates. The event rates are used to display a colored timeline for the time period, including displaying a colored timeline portion for each time segment in its associated color.

## Claims

### Claim 1

A system comprising:
a performance event tracking engine configured to:
track a performance event during execution of each of a plurality of processes on a multi-threaded computer; and
generate an event log for each of the plurality of processes, wherein the event log comprises a plurality of records, and wherein each record includes a number of occurrences of the performance event, a timestamp, and a thread identifier;
an event log processing engine configured to calculate event rate data for each particular process of the plurality of processes based on the event log for each particular process; and
a display engine configured to:
simultaneously display a plurality of timelines, wherein each timeline of the plurality of timelines corresponds to the event rate data for a corresponding process of the plurality of processes;
receive a selection of a portion of a particular timeline;
display call-stack information for the selected portion of the particular timeline; and
zoom in on the selected portion of the particular timeline.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
a reporting engine configured to generate a performance report for the selected portion of the particular timeline; and
wherein the display engine is further configured to display the performance report generated by the reporting engine.

### Claim 3 (depends on 1)

The system of claim 1, wherein a process of the plurality of processes is a multi-threaded process, wherein a timeline corresponding to the multi-threaded process includes a channel for each thread of the multi-threaded process, and wherein the display engine is further configured to selectively hide and selectively show each channel.

### Claim 4 (depends on 3)

The system of claim 3, further comprising a context switch engine to track when a particular thread begins and ends execution, and wherein the display engine is further configured to selectively display portions of a particular channel associated with the particular thread, wherein the portions displayed correspond to time periods during which the particular thread was executing.

### Claim 5 (depends on 1)

The system of claim 1, wherein the display engine is further configured to:
segment each timeline of the plurality of timelines using at least one phase marker; and
correlate the segmented timelines with at least one application executing at the multi-threaded computer while the performance event tracking engine tracked the performance event.

### Claim 6 (depends on 5)

The system of claim 5, wherein the at least one phase marker indicates a portion of source code of the at least one application that executes contiguously in time.

### Claim 7 (depends on 1)

The system of claim 1, wherein the performance event tracking engine tracks the performance event by sampling a hardware performance counter at the multi-threaded computer.

### Claim 8

A method comprising:
tracking, for a time period, each occurrence of an event occurring during execution at a computer, wherein the time period includes a plurality of time segments;
calculating an event rate based on a number of tracked occurrences of the event for each time segment of the plurality of time segments;
associating each time segment with a color of a color palette, wherein the color is determined based on the event rate corresponding to the time segment; and
displaying a colored timeline corresponding to the time period, the colored timeline including a plurality of color displays, each color display corresponding to a particular time segment and presented in the color associated with the particular time segment.

### Claim 9 (depends on 8)

The method of claim 8, wherein the color palette comprises a plurality of color hues.

### Claim 10 (depends on 8)

The method of claim 8, wherein the color palette comprises a plurality of color hue intensities of a single color hue.

### Claim 11 (depends on 8)

The method of claim 8, wherein tracking each occurrence of the event includes tracking call stack information of the computer associated with each occurrence of the event.

### Claim 12 (depends on 8)

The method of claim 8, further comprising receiving a selection of a portion of the colored timeline.

### Claim 13 (depends on 12)

The method of claim 12, further comprising displaying a performance report for the selected portion of the colored timeline.

### Claim 14 (depends on 8)

The method of claim 8, further comprising segmenting the colored timeline using at least one phase marker.

### Claim 15 (depends on 14)

The method of claim 14, wherein the at least one phase marker indicates a portion of application source code that executes contiguously in time.

### Claim 16 (depends on 7)

The method of claim 7, wherein the computer is a multi-core computer and wherein tracking each occurrence of the event comprises tracking each occurrence of the event at each core of the multi-core computer.

### Claim 17

A method comprising:
receiving sample data for a thread executing on a multi-threaded computer, wherein the sample data is related to a performance event of the multi-threaded computer, wherein the sample data includes a plurality of samples, wherein each sample of the plurality of samples indicates a number of occurrences of the performance event during execution of the thread during a time period, and wherein each sample has an associated timestamp;
calculating a plurality of time differences from the sample data, wherein each time difference is a time difference between two consecutive samples of the plurality of samples;
calculating a plurality of performance event rates based on the plurality of time differences;
determining a range of the plurality of performance event rates;
assigning a color spectrum to the range of the plurality of performance event rates;
generating a colored timeline display corresponding to the time period, the colored timeline display based on the plurality of performance event rates and the color spectrum; and
displaying the colored timeline display at a display device.

### Claim 18 (depends on 17)

The method of claim 17, wherein determining the range of the plurality of performance event rates includes identifying a lowest performance event rate and a highest performance event rate, and wherein assigning the color spectrum to the range includes assigning a first color corresponding to a first region of the color spectrum to the lowest performance event rate and assigning a second color corresponding to a second region of the color spectrum to the highest performance event rate.

### Claim 19 (depends on 17)

The method of claim 17, wherein the time period comprises a plurality of time segments, and wherein each of the plurality of performance event rates corresponds to a number of times the performance event occurred during a particular time segment.

### Claim 20 (depends on 17)

The method of claim 17, wherein the sample data for the thread is based on data collected by tracking a hardware performance counter associated with the multi-threaded computer.
