Scheme for Calculating CPU Usage Based on the Front-End and Back-End System
Most small-scale embedded devices use a front-end and back-end system for functional design and development,rather than an operating system.Currently,there is no effective solution under the front-end and back-end system to reflect the real-time response of tasks and monitor occasional functional problems,which can result in functional defects.Therefore,a scheme for calculating CPU usage based on the front-end and back-end system is proposed in this paper.This scheme reflects the real-time response of tasks by counting trigger times,CPU usage,and extremes in a statistical cycle.It is applied to GD32 MCU.Experimental results show that this scheme can effectively reflect the overall running status of the device in real time and provide effective support for the development and testing of device functions.
front-end and back-end systemreal-time response of tasksCPU usageGD32