Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
sampling duration for CPU consumption
lohithgm last edited by
What is the recommended (ideal or optimal) sampling duration in milli seconds (ms) for measuring the CPU usage for an application implemented with QML, C++ and deployed on a micro-controller ?
Its on a Linux platform, top command in batch mode is used for capturing the CPU usage logs ? The question is at what duration the CPU usage logs to be captured whether at 100ms or 500ms or so on, considering the QT background processes.
@lohithgm I would say it's up to you/your requirements (how exact needs it to be?). You just should not do it too often else this CPU usage measuring can increase the CPU usage too much :-)