1. A method comprising: executing, via one or more processors, program code for a plurality of times; collecting, via the one or more processors, one or more values of one or more hardware dependent metrics for the program code, the one or more hardware dependent metrics including a first hardware dependent metric and a second hardware dependent metric; measuring one or more changes in values of the one or more hardware dependent metrics during the executing of the program code for the plurality of times, including a first change in value of the first hardware dependent metric and a second change in value of the second hardware dependent metric; identifying an execution anomaly based on the one or more changes in values of the one or more hardware dependent metrics wherein: the one or more changes in values of the one or more hardware dependent metrics each correspond to an increase or a decrease in one or more values of the one or more hardware dependent metrics during the executing of the program code for the plurality of times; the first change in value of the first hardware dependent metric is correlated to the second change in value of the second hardware dependent metric; the first change in value of the first hardware dependent metric and the second change in value of the second hardware dependent metric result from the executing, for the plurality of times, of one or more instructions of the program code; the execution anomaly relates to a hardware related optimization used when executing the one or more instructions of the program code, that causes an overall performance issue in the executing of the program code; and modifying the program code, wherein the modifying removes the execution anomaly from the program code and improves the overall performance issue in the executing of the program code wherein the overall performance issue comprises a slow down in executing the program code, and improving the overall performance issue comprises speeding up the executing of the program code.