Patent Document ID: 9009691
Application ID: 13940987
Patent Status: 1

Claim One:
1. A method for improving the performance of an application's binary, the method comprising: while executing a first application binary, collecting profile data about the application that includes a map from at least one inline stack to the inline stack's execution count, wherein an inline stack is a stack of source locations in which the top of the stack is located in a function and at least one other level of the stack is the location of a callsite which is inlined by a compiler in the normal binary; creating a context summary map from the collected profile data which shows a summary of the total execution count of all instructions in the callee function for each callsite inlined in the application binary; using the context summary map to compare each function callsite's execution count with a predetermined threshold; annotating the profile by: traversing the content of each function, for each instruction in the content, determining whether there is an inline stack associated with the instruction, and responsive to determining that there is not an inline stack associated with the instruction, setting the instruction's execution count in the profile to 0; and generating a second application binary using the annotated profile.