Patent ID: 7574626

Claim:
A trace information collecting method for collecting trace information showing the processing history of a program, comprising: a history recording step for recording the run/stop history of a target program that is the target for generating trace information; a similarity calculating step for calculating, as a degree of similarity, a value indicating a deviation in a probability distribution of time ratios of a running time and a stop time each time there is repetitive running and stopping, the last time that the target program was run, and prior to the last time that the target program was run, of the time ratios of the running time and the stop time in the repetitive running and stopping the last time that the target program was run, when starting an operation of the target program that has been stopped; a failure occurrence determining step for determining that a failure occurred the last time the target program ran, on condition that the similarity calculated by the similarity calculating step is lower than a reference similarity; and a trace information collecting step for collecting sequentially trace information, which is not collected when there is no determination that a failure has occurred, from the started target program in response to the determination that a failure occurred.