# US 2021/0240590 A1 · Modifying compiled applications to monitor performance

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

- Number: US 2021/0240590 A1
- Document ID: US20210240590A1
- Status: Published application
- Kind: A1
- Application number: 16/780,062
- Filed: 2020-02-03
- Published: 2021-08-05
- Earliest claimed: 2020-02-03
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Yanfeng Shi; Guanqin Zhang; Yue Wang; Hui Gao; Yue Chen; Huai Nan Zhou; Hai Jun Xu; Wei ming He
- Web page: https://patentgrep.com/patent/US20210240590A1

## CPC

- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3409: {for performance assessment}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- H04L 43/04: Processing captured monitoring data, e.g. for logfile generation
- H04L 43/0823: Errors, e.g. transmission errors
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 45/14: {Routing performance; Theoretical aspects}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F 11/3065: {Monitoring arrangements determined by the means or processing involved in reporting the monitored data (error or fault reporting or logging G06F11/0766)}
- H04L 45/123: {Evaluation of link metrics (techniques for monitoring network metrics H04L43/08)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A computer system modifies a compiled application to monitor performance. A request routing function of the compiled application is replaced with jump code that directs processing to a data collection function and backing up the request routing function. In response to receiving, during execution of the compiled application, an incoming request from a remote device for handling by the request routing function, the data collection function is executed based on the jump code. Using the data collection function, data associated with the incoming request is collected, the data comprising performance metrics. The backup of the request routing function is called using the data collection function to process the request and provide a response. Embodiments of the present invention further include a method and program product for modifying a compiled application to monitor performance in substantially the same manner described above.

## Claims

### Claim 1

A computer-implemented method for modifying a compiled application to monitor performance, the method comprising:
replacing a request routing function of the compiled application with jump code that directs processing to a data collection function and backing up the request routing function;
in response to receiving, during execution of the compiled application, an incoming request from a remote device for handling by the request routing function, executing the data collection function based on the jump code;
collecting, using the data collection function, data associated with the incoming request, the data comprising performance metrics; and
calling the backup of the request routing function using the data collection function to process the request and provide a response.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the backup of the request routing function is inserted into a predefined function in memory.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, where the request routing function is converted from a private function to a public function.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the collected data further comprises performance metrics associated with the response to the incoming request.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the performance metrics comprise one or more of: latency information, traffic information, and error rate information.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising: transmitting the response to the incoming request to the remote device.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein a package including the data collection function is imported at compilation of the application.

### Claim 8

A computer system for modifying a compiled application to monitor performance, the computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising instructions to:
replace a request routing function of the compiled application with jump code that directs processing to a data collection function and backing up the request routing function;
in response to receiving, during execution of the compiled application, an incoming request from a remote device for handling by the request routing function, execute the data collection function based on the jump code;
collect, using the data collection function, data associated with the incoming request, the data comprising performance metrics; and
call the backup of the request routing function using the data collection function to process the request and provide a response.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the backup of the request routing function is inserted into a predefined function in memory.

### Claim 10 (depends on 8)

The computer system of claim 8, where the request routing function is converted from a private function to a public function.

### Claim 11 (depends on 8)

The computer system of claim 8, wherein the collected data further comprises performance metrics associated with the response to the incoming request.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the performance metrics comprise one or more of: latency information, traffic information, and error rate information.

### Claim 13 (depends on 8)

The computer system of claim 8, wherein the program instructions further comprise instructions to:
transmit the response to the incoming request to the remote device.

### Claim 14 (depends on 8)

The computer system of claim 8, wherein a package including the data collection function is imported at compilation of the application.

### Claim 15

A computer program product for modifying a compiled application to monitor performance, the computer program product comprising one or more computer readable storage media collectively having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to:
replace a request routing function of the compiled application with jump code that directs processing to a data collection function and backing up the request routing function;
in response to receiving, during execution of the compiled application, an incoming request from a remote device for handling by the request routing function, execute the data collection function based on the jump code;
collect, using the data collection function, data associated with the incoming request, the data comprising performance metrics; and
call the backup of the request routing function using the data collection function to process the request and provide a response.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the backup of the request routing function is inserted into a predefined function in memory.

### Claim 17 (depends on 15)

The computer program product of claim 15, where the request routing function is converted from a private function to a public function.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the collected data further comprises performance metrics associated with the response to the incoming request.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the performance metrics comprise one or more of: latency information, traffic information, and error rate information.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the program instructions further cause the computer to:
transmit the response to the incoming request to the remote device.
