Invention Grant
- Patent Title: Software code profiling
- Patent Title (中): 软件代码分析
-
Application No.: US14017047Application Date: 2013-09-03
-
Publication No.: US09182958B2Publication Date: 2015-11-10
- Inventor: Ingar Hanssen
- Applicant: Atmel Corporation
- Applicant Address: US CA San Jose
- Assignee: Atmel Corporation
- Current Assignee: Atmel Corporation
- Current Assignee Address: US CA San Jose
- Agency: Fish & Richardson P.C.
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45

Abstract:
An on-chip function call aware software code profiling counter system and method is disclosed. When building software code a compiler/tool-chain can modify prologues and epilogues of functions to add instrumentation code which uniquely identifies the function. Each function included in the instrumented source code tree is assigned a unique identifier (ID) by the compiler/tool-chain. Writing a unique ID for a function to a register starts profiling for the function. The profiling is performed by a counter that counts the number of instruction cycles since the last unique ID was written to the register. When a unique ID for a next function to be profiled is written to the register, the old register value and the counter value are latched to one or more buffers and the counter is cleared to start the next count sequence for the next function to be profiled.
Public/Granted literature
- US20150067661A1 SOFTWARE CODE PROFILING Public/Granted day:2015-03-05
Information query