# US 8,578,213 B2 · Analyzing software performance issues

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

- Number: US 8,578,213 B2
- Document ID: US8578213B2
- Status: Granted
- Kind: B2
- Application number: 13/095,269
- Filed: 2011-04-27
- Published: 2012-11-01
- Granted: 2013-11-05
- Earliest claimed: 2011-04-27
- Assignees: Microsoft Corporation
- Applicants: Shi Han; Yingnong Dang; Song Ge; Dongmei Zhang; Bin Zhao; Feng Liang; Chao Bian; Xiangpeng Zhao; Cong Chen; Hang Li; Prashant Ratanchandani
- Inventors: Shi Han; Yingnong Dang; Song Ge; Dongmei Zhang; Bin Zhao; Feng Liang; Chao Bian; Xiangpeng Zhao; Cong Chen; Hang Li; Prashant Ratanchandani
- Web page: https://patentgrep.com/patent/US8578213B2

## CPC

- G06F 11/3636: {by tracing the execution of the program}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Execution traces are collected from multiple execution instances that exhibit performance issues such as slow execution. Call stacks are extracted from the execution traces, and the call stacks are mined to identify frequently occurring function call patterns. The call patterns are then clustered, and used to identify groups of execution instances whose performance issues may be caused by common problematic program execution patterns.

## Claims

### Claim 1

A method of identifying issues related to slow performance in computer programs, comprising:
collecting execution traces from multiple computers, the execution traces corresponding to multiple execution instances that have exhibited slow performance;
processing the execution traces to identify function call stacks;
mining the function call stacks to identify function call patterns having a number of occurrences in the function call stacks above a specified threshold identifying clusters of the identified function call patterns based on an automated support vector machine (SVM) classifier; and
ranking each respective cluster of the clusters based at least in part on a number of occurrences of the identified function call patterns occurring within the respective cluster.

### Claim 2 (depends on 1)

The method of claim 1, further comprising training the automated SVM classifier based on human classification of selected pairs of function call patterns.

### Claim 3 (depends on 1)

The method of claim 1, further comprising iteratively training the automated SVM classifier based on human classification of selected pairs of function call patterns.

### Claim 4 (depends on 1)

The method of claim 1, wherein the automated SVM classifier classifies pairs of function call patterns based on matching unigrams and bigrams of the pairs of function call patterns.

### Claim 5 (depends on 1)

The method of claim 1, wherein the automated SVM classifier classifies pairs of function calls based on edit distances between the function call patterns of the pairs of function calls.

### Claim 6 (depends on 1)

The method of claim 1, further comprising prioritizing problematic program execution patterns based at least in part upon the ranking of the clusters.

### Claim 7 (depends on 1)

The method of claim 1, wherein mining the call stacks comprises:
assigning partitions of a search space to multiple computing nodes; and
assigning sub-partitions of the partitions to processors within the multiple computing nodes, wherein the processors within a single computing node of the multiple computing nodes share access to common memory from which the function call patterns are identified.

### Claim 8

A method of identifying related problematic program execution patterns, comprising:
collecting execution traces corresponding to multiple execution instances that have exhibited performance problems;
processing the execution traces to identify call stacks;
mining the call stacks to identify function call patterns having a number of occurrences in the call stacks above a specified threshold;
identifying clusters of the identified function call patterns; and
ranking each respective cluster of the clusters based at least in part on a number of occurrences of the identified function call patterns occurring within the respective cluster.

### Claim 9 (depends on 8)

The method of claim 8, wherein identifying the clusters is based at least in part on edit distances between function call patterns.

### Claim 10 (depends on 8)

The method of claim 8, wherein identifying the clusters is based at least in part on unigrams and bigrams of function call pattern pairs.

### Claim 11 (depends on 8)

The method of claim 8, wherein identifying the clusters is based at least in part on domain knowledge supplied by human analysts.

### Claim 12 (depends on 8)

The method of claim 8, wherein identifying the clusters is based at least in part on manual classification of selected pairs of function call patterns by human analysts.

### Claim 13 (depends on 8)

The method of claim 8, wherein identifying the clusters further comprises training a support vector machine (SVM) model based at least in part on domain knowledge supplied by human analysts.

### Claim 14 (depends on 8)

The method of claim 8, wherein identifying the clusters further comprises iteratively training a support vector machine (SVM) model based at least in part on domain knowledge supplied by human analysts.

### Claim 15 (depends on 8)

The method of claim 8, further comprising prioritizing problematic program execution patterns based at least in part upon the ranking of the clusters.

### Claim 16 (depends on 8)

The method of claim 8, further comprising identifying groups of execution instances that exhibit common problematic program execution patterns based at least in part on the identified clusters.

### Claim 17 (depends on 8)

The method of claim 8, wherein mining the call stacks comprises:
assigning partitions of a search space to multiple computing nodes; and
assigning sub-partitions of the partitions to processors within the computing nodes, wherein the processors within a single computing node of the multiple computing nodes share access to common memory from which the function call patterns are identified.

### Claim 18

One or more computer storage media containing instructions that are executable by a processor to perform actions comprising:
mining one or more call stacks associated with execution instances to identify function call patterns having a number of occurrences in the one or more call stacks above a specified threshold;
identifying one or more clusters of the identified function call patterns; and
ranking each respective cluster of the one or more clusters based at least in part on a number of occurrences of the identified function call patterns occurring within the respective cluster.

### Claim 19 (depends on 18)

The one or more computer storage media recited in claim 18, the actions further comprising associating respective clusters having the identified function call patterns with different problematic program execution patterns.

### Claim 20 (depends on 18)

The one or more computer storage media recited in claim 18, wherein identifying the one or more clusters uses domain knowledge provided by human analysts.
