Patent ID: 9619361
Date: 2017-04-11
CPC Classifications: G06F

Claim:
1. A performance profiling apparatus comprising: a plurality of counters provided for a plurality of routines included in a program, respectively; a storage section configured to store instructions included in the respective routines and identification information indicating the respective routines which are assigned to the respective instructions when converting a source code of the program to an object code by a compiler, the identification information of the respective instructions being stored in a word including the respective instructions of the respective routines; a processor configured to assert a signal when reading the respective instructions from the word of the storage section and to execute a process according to the respective instructions, wherein the processor does not assert the signal when reading data other than the instructions from the storage section; a register configured to receive and store the identification information from the same word as the word from which the processor has read the respective instruction of the storage section based on an asserted signal which is asserted by the processor when the respective instructions are supplied to the processor from the word of the storage section, wherein the register does not receive data from the storage section when the signal is not asserted by the processor; and a counter controller configured to receive the identification information that is output from the register and to instruct, based on a notification that a target event occurs, a first counter designated by the identification information to count up.