Patent ID: 8819496

Claim:
A system for collecting trace information comprising: a first apparatus, for collecting trace information outputted by a circuit which executes a program, and a second apparatus, for processing the trace information, wherein the first apparatus includes a target circuit which executes a same program a plurality of times; a counter configured to generate a count value, which is initialized at every start of execution of the same program and incremented a value based on each execution cycle of the program; an interface unit configured to fetch trace information from the target circuit, then store the fetched trace information with a count value generated by the counter at a time of fetching the trace information; and a collection unit configured to output the trace information with the count value; and wherein the second apparatus includes a trace information acquisition unit configured to acquire trace information from a trace information collected during more than one execution of the same program with the count value; a sort processing unit configured to gather the acquired trace information into one and to sort the gathered trace information based on the count value; and a trace information storage unit configured to store the sorted trace information.