# US 2024/0201967 A1 · System, method, and graphical user interface for temporal presentation of stack trace and associated data

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

- Number: US 2024/0201967 A1
- Document ID: US20240201967A1
- Status: Published application
- Kind: A1
- Application number: 18/068,487
- Filed: 2022-12-19
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, Inc.
- Inventors: Ravi Sankar Pulle; Ajay Krishna Borra
- Web page: https://patentgrep.com/patent/US20240201967A1

## CPC

- G06F 8/443: {Optimisation}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3409: {for performance assessment}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus and method for identifying code path contributors to resource utilization spikes. For example, in some implementations, stack trace data and profiling data are sampled from a plurality of code paths of an application to generate a plurality of code path samples, where the sampling is performed across a series of temporal windows. Processor utilization data is also sampled across a corresponding series of temporal windows. Correlations are detected between the code path samples and occurrences of processor utilization spikes to generate correlational scores for the plurality of code paths. A ranking of code paths is then generated in accordance with the correlational scores in which code paths relatively higher in the ranking are more likely to contribute to the occurrences of the processor utilization spikes than code paths relatively lower in the ranking.

## Claims

### Claim 1

An article of manufacture comprising a non-transitory machine-readable storage medium that provides instructions that, if executed by one or more electronic devices are configurable to cause the one or more electronic devices to perform operations comprising:
sampling a plurality of code paths of an application, container, or virtual machine (VM) to generate a plurality of code path samples, the sampling performed across a series of temporal windows;
sampling resource utilization data associated with execution of the plurality of code paths to generate resource utilization samples;
detecting correlations between the code paths as indicated in the code path samples and occurrences of resource utilization spikes indicated in the resource utilization samples to generate correlational scores for the plurality of code paths or for a subset of the plurality of code paths; and
generating a ranking of code paths in accordance with the correlational scores, wherein code paths relatively higher in the ranking are more likely to contribute to the resource utilization spikes than code paths relatively lower in the ranking.

### Claim 2 (depends on 1)

The article of manufacture of claim 1 wherein sampling a plurality of code paths comprises performing stack tracing to collect timing data associated with function calls of threads of the application, container, or virtual machine (VM).

### Claim 3 (depends on 2)

The article of manufacture of claim 2 wherein sampling the plurality of code paths further comprises performing profiling to collect contextual data related to the function calls.

### Claim 4 (depends on 3)

The article of manufacture of claim 3 wherein the electronic device is to perform additional operations comprising:
constructing a search tree based on the timing data and contextual data related to the function calls.

### Claim 5 (depends on 4)

The article of manufacture of claim 4 wherein the search tree comprises a plurality of nodes, each node representing a set of one or more of the function calls.

### Claim 6 (depends on 5)

The article of manufacture of claim 5 wherein the plurality of nodes include one or more path junction nodes, each path junction node representing a point at which code paths sharing a common set of function calls diverge into multiple paths, wherein separate string values associated with the common set of function calls are to be combined into a single set of string values representing the common set of function calls.

### Claim 7 (depends on 6)

The article of manufacture of claim 6 wherein the search tree comprises a prefix tree, wherein start nodes and end nodes of the prefix tree are indexed using stack trace identifiers associated with the code paths.

### Claim 8 (depends on 7)

The article of manufacture of claim 7 wherein each node of the plurality of nodes comprises a hashed node value, wherein individual string values are not stored at each node.

### Claim 9 (depends on 1)

The article of manufacture of claim 1 wherein the at least one of the one or more electronic devices is to perform additional operations comprising:
determining and applying one or more offset values to temporally align timing values associated with the plurality of code paths with timing values associated with the resource utilization data.

### Claim 10 (depends on 9)

The article of manufacture of claim 9 wherein the at least one of the one or more electronic devices is to perform additional operations comprising:
generating a first table, each column of the first table corresponding to a different time delta determined based on the timing values associated with the plurality of code paths, and each row associated with a code path of the plurality of code paths, wherein the plurality of code path samples associated with different ones of the plurality of code paths are to be stored in different rows, and wherein each column is to store subsets of the plurality of code path samples associated with corresponding ones of the time deltas.

### Claim 11 (depends on 10)

The article of manufacture of claim 10 wherein the at least one of the one or more electronic devices is to perform additional operations comprising:
generating a second table, each column of the second table corresponding to a different time delta determined based on the timing values associated with the resource utilization data, each column to store a different set of samples of the resource utilization data associated with a corresponding one of the time deltas.

### Claim 12 (depends on 11)

The article of manufacture of claim 11 wherein at least one of the different sets of samples of the resource utilization data indicate at least one of the resource utilization spikes.

### Claim 13 (depends on 12)

The article of manufacture of claim 12 wherein the at least one of the one or more electronic devices is to perform additional operations comprising:
identifying a first subset of code paths which are unlikely to be causing the resource utilization spikes and removing the first subset of code paths from consideration prior to detecting the correlations, the first subset of code paths including code paths which are not increasing in frequency or have frequencies below a threshold during time deltas corresponding to the resource utilization spikes.

### Claim 14 (depends on 13)

The article of manufacture of claim 13 wherein detecting the correlations comprises performing a statistical analysis or machine learning to determine a correspondence between instances of certain code paths and resource utilization spikes occurring in common time deltas.

### Claim 15 (depends on 14)

The article of manufacture of claim 14 wherein the at least one of the one or more electronic devices is to perform additional operations comprising:
identifying a second subset of code paths likely to be causing the resource utilization spikes based on the correlations; and
ranking each code path in the second subset of code paths based on an extent to which each code path is contributing to the resource utilization spikes.

### Claim 16 (depends on 15)

The article of manufacture of claim 15 wherein the at least one of the one or more electronic devices is to perform additional operations comprising:
rendering a graphical user interface (GUI) providing a visual representation of the code paths over time, including the second subset of code paths likely to be causing the resource utilization spikes, the visual representation including a first dimension representing different ones of the code paths and a second dimension representing time.

### Claim 17 (depends on 16)

The article of manufacture of claim 16 wherein the visual representation is to further include a representation of resource utilization associated with each of the code paths over time.

### Claim 18 (depends on 17)

The article of manufacture of claim 17 wherein the visual representation is to include a third dimension to represent the resource utilization associated with each of the code paths over time.

### Claim 19 (depends on 17)

The article of manufacture of claim 17 wherein the representation of resource utilization associated with each of the code paths comprises a graphical characteristic associated with a graphical representation of each code path.

### Claim 20 (depends on 19)

The article of manufacture of claim 19 wherein the graphical representation of each code path comprises a curve and wherein the graphical characteristic comprises a width of the curve, wherein relatively larger widths indicate relatively larger resource utilization and relatively smaller widths indicate relatively smaller resource utilization.
