sampling duration for CPU consumption



  • 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.


  • Qt Champions 2018

    @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 :-)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.