摘要 |
A computer executes a first version of a code module in a first test environment, collects a first set of execution measurements, and creates a first profile based on the first set of execution measurements. The computer executes the first version of the code module in a second test environment, collects a second set of execution measurements, and creates a second profile based on the second set of execution measurements. In response to a difference between the first profile and the second profile exceeding a threshold, the computer provides diagnostic data characterizing the difference, analyzes an impact of the difference on the execution of the code module, calculates a risk of code module failure value based on analyzing the impact of the difference, and provides a recommended action based on analyzing the impact of the difference and the calculated risk of code module failure value. |
主权项 |
1. A method comprising:
executing, by a computer, a first version of a code module in a first test environment; collecting, by the computer, a first set of execution measurements, including code module execution times and code module control flows, for the first version of the code module executing in the first test environment; creating, by the computer, a first profile of the first version of the code module based on the first set of execution measurements; executing, by the computer, the first version of the code module in a second test environment; collecting, by the computer, a second set of execution measurements, including code module execution times and control module control flows, for the first version of the code module executing in the second test environment; creating, by the computer, a second profile of the first version of the code module based on the second set of execution measurements; and in response to a difference between the first profile and the second profile exceeding a threshold:
providing, by the computer, diagnostic data characterizing the difference between the first profile and the second profile;analyzing, by the computer, an impact of the difference between the first profile and the second profile on the execution of the code module, the impact comprising a value rating based on either or both of the number of code portions dependent on the code module, and the frequency with which the code module is executed;calculating, by the computer, a risk of code module failure value based on analyzing the impact of the difference between the first profile and the second profile; andproviding, by the computer, a recommended action based on analyzing the impact of the difference and the calculated risk of code module failure value. |