# US 2024/0201958 A1 · Identifying method footprints using vector embeddings

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

- Number: US 2024/0201958 A1
- Document ID: US20240201958A1
- Status: Published application
- Kind: A1
- Application number: 18/065,901
- Filed: 2022-12-14
- Published: 2024-06-20
- Earliest claimed: 2022-12-14
- Assignees: Salesforce, Inc.
- Applicants: Salesforce, inc.
- Inventors: Ajay Krishna Borra; Manpreet Singh; Ravi Sankar Pulle; Amrita Saha
- Web page: https://patentgrep.com/patent/US20240201958A1

## CPC

- G06F 8/35: model driven
- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F 11/30: Monitoring
- G06F 11/3409: {for performance assessment}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, apparatuses, devices, and computer program products are described. A system may collect a first set of profiling data associated with computational resource consumption of one or more code implementations or methods. The system may use a vector embedding translation to convert the profiling data into one or more vector spaces. Each vector space may include a set of vectors, and each vector may correspond to an execution of a code implementation or method. The system may use the vector spaces to generate a model representation of the computational resource consumption of the one or more code implementations. In some cases, the system may collect and convert a second set of real-time profiling data into vector spaces, which the system may compare to the model representation such that users may identify deviations from resource consumption footprints.

## Claims

### Claim 1

A method for data processing, comprising:
collecting a first set of metrics associated with computational resource consumption of one or more code implementations:
converting the first set of metrics into one or more first vector spaces corresponding to the one or more code implementations using a vector embedding translation, wherein a vector space of the one or more first vector spaces comprises a plurality of vectors, and wherein a vector of the plurality of vectors corresponds to an execution of a code implementation:
generating a model representation of the computational resource consumption of the one or more code implementations based at least in part on the one or more first vector spaces:
converting a second set of metrics associated with the computational resource consumption of the one or more code implementations into one or more second vector spaces corresponding to the one or more code implementations; and
outputting a result of a comparison between the one or more second vector spaces and the model representation.

### Claim 2 (depends on 1)

The method of claim 1, wherein converting the first set of metrics into the one or more first vector spaces comprises:
generating the vector corresponding to the execution of the code implementation, wherein the vector comprises a plurality of values representing the computational resource consumption.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
generating the plurality of values representing the computational resource consumption based at least in part on the first set of metrics.

### Claim 4 (depends on 1)

The method of claim 1, wherein converting the first set of metrics into the one or more first vector spaces comprises:
generating a plurality of vector identifiers for the plurality of vectors, wherein a vector identifier for the vector corresponds to a plurality of values representing the computational resource consumption.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
identifying a difference between the model representation of the computational resource consumption and the second set of metrics based at least in part on the result of the comparison.

### Claim 6 (depends on 1)

The method of claim 1, wherein the vector space comprises an n-dimensional vector space that indicates a baseline computational resource consumption of the one or more code implementations.

### Claim 7 (depends on 1)

The method of claim 1, wherein the computational resource consumption comprises central processing unit consumption, memory consumption, network consumption, or a combination thereof.

### Claim 8

An apparatus for data processing, comprising:
a processor:
memory coupled with the processor: and
instructions stored in the memory and executable by the processor to cause the apparatus to:
collect a first set of metrics associated with computational resource consumption of one or more code implementations:
convert the first set of metrics into one or more first vector spaces corresponding to the one or more code implementations using a vector embedding translation, wherein a vector space of the one or more first vector spaces comprises a plurality of vectors, and wherein a vector of the plurality of vectors corresponds to an execution of a code implementation:
generate a model representation of the computational resource consumption of the one or more code implementations based at least in part on the one or more first vector spaces:
convert a second set of metrics associated with the computational resource consumption of the one or more code implementations into one or more second vector spaces corresponding to the one or more code implementations; and
output a result of a comparison between the one or more second vector spaces and the model representation.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the instructions to convert the first set of metrics into the one or more first vector spaces are executable by the processor to cause the apparatus to:
generate the vector corresponding to the execution of the code implementation, wherein the vector comprises a plurality of values representing the computational resource consumption.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the instructions are further executable by the processor to cause the apparatus to:
generate the plurality of values representing the computational resource consumption based at least in part on the first set of metrics.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the instructions to convert the first set of metrics into the one or more first vector spaces are executable by the processor to cause the apparatus to:
generate a plurality of vector identifiers for the plurality of vectors, wherein a vector identifier for the vector corresponds to a plurality of values representing the computational resource consumption.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein the instructions are further executable by the processor to cause the apparatus to:
identify a difference between the model representation of the computational resource consumption and the second set of metrics based at least in part on the result of the comparison.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein the vector space comprises an n-dimensional vector space that indicates a baseline computational resource consumption of the one or more code implementations.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the computational resource consumption comprises central processing unit consumption, memory consumption, network consumption, or a combination thereof.

### Claim 15

A non-transitory computer-readable medium storing code for data processing, the code comprising instructions executable by a processor to:
collect a first set of metrics associated with computational resource consumption of one or more code implementations:
convert the first set of metrics into one or more first vector spaces corresponding to the one or more code implementations using a vector embedding translation, wherein a vector space of the one or more first vector spaces comprises a plurality of vectors, and wherein a vector of the plurality of vectors corresponds to an execution of a code implementation:
generate a model representation of the computational resource consumption of the one or more code implementations based at least in part on the one or more first vector spaces:
convert a second set of metrics associated with the computational resource consumption of the one or more code implementations into one or more second vector spaces corresponding to the one or more code implementations: and
output a result of a comparison between the one or more second vector spaces and the model representation.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the instructions to convert the first set of metrics into the one or more first vector spaces are executable by the processor to:
generate the vector corresponding to the execution of the code implementation, wherein the vector comprises a plurality of values representing the computational resource consumption.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the instructions are further executable by the processor to:
generate the plurality of values representing the computational resource consumption based at least in part on the first set of metrics.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the instructions to convert the first set of metrics into the one or more first vector spaces are executable by the processor to:
generate a plurality of vector identifiers for the plurality of vectors, wherein a vector identifier for the vector corresponds to a plurality of values representing the computational resource consumption.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the instructions are further executable by the processor to:
identify a difference between the model representation of the computational resource consumption and the second set of metrics based at least in part on the result of the comparison.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the vector space comprises an n-dimensional vector space that indicates a baseline computational resource consumption of the one or more code implementations.
