Patent ID: 8806461

Claim:
A method of optimizing source code, comprising: performing a trace analysis on the source code to collect trace analysis data; extracting memory usage information from the trace analysis data; displaying a source code listing of the source code; receiving an indication that a user has used the source code listing to select a portion of source code in the source code listing; based on the portion of source code selected using the source code listing: identifying a memory address associated with the selected portion of source code; identifying a first portion of the extracted memory usage information associated with the selected portion of source code; and displaying the memory address and the first portion of the extracted memory usage information associated with the selected portion of source code; and determining, from the extracted memory usage information, a memory address misuse in connection with a portion of memory addresses comprising a first sub-portion of memory addresses allocated to a first processing unit and a second sub-portion of memory addresses allocated to a second processing unit, the first sub-portion of memory addresses comprising the identified memory address associated with the selected portion of source code, the memory address misuse comprising an access by the second processing unit of the memory address in the first sub-portion of memory addresses allocated to the first processing unit.