摘要 |
An embodiment of the present invention provides a software test method. The method comprises: obtaining a code address interval of a target function in software to be tested; running the software to be tested, and collecting the stay time of a PC program counter pointer in the code address interval in a preset measurement time, the measurement time being an integer multiple of a processor clock cycle; and calculating load information of the target function according to the stay time. An embodiment of the present invention also provides a software test apparatus. Use of the present invention allows for accurate estimation of the load condition of a target function in software to be tested. |