Embodiments of the present application provide a
fault analysis data storage method, a
fault analysis method, a device and a storage medium. The method comprises: by an electronic device running a real-time
operating system, every interval of a preset time length, obtaining first identification information of a task executed by the electronic device based on the real-time
operating system at the
current time, and storing the first identification information, updating the cumulative running number of a plurality of tasks within a statistical time according to the first identification information, and storing the updated cumulative running number, when the electronic device has a task
timeout not executed, generating a
data file comprising the stored first identification information and the cumulative running number, and storing the
data file in the non-volatile storage unit of the electronic device, providing
analysis data for subsequent
fault analysis and positioning.