The application discloses a
timestamp-based RTOS real-time measurement and critical path
analysis method, relates to the technical field of real-
time system test analysis, and performs minimum plug-in at the points of task switching, interruption in and out, lock and inter-
process communication, constructs a double-channel critical evidence
pool of a key evidence channel and an abstract channel, and marks a missing gap sign for the abstract channel. On-line calculation is performed on indexes such as each scheduling
delay, wake-up
delay, lock waiting, interrupt section and interruption response, and when a violation is triggered, a window before and after freezing is formed to form an evidence window. In combination with the state snapshot of the trigger point and the window end point, evidence closure detection is performed according to a closed criterion
library, a window is expanded or object-level supplement is performed when a causal edge is missing, and an evidence closure
certificate is generated. Based on the closed evidence, a critical path is reconstructed, and an attribution
ranking is given, an idempotent evidence
package containing a configuration
fingerprint and an abnormal
fingerprint is generated, and de-duplication and merging are performed, and the reviewability and delivery consistency of accidental violation positioning are improved.