Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. sampling duration for CPU consumption
Forum Updated to NodeBB v4.3 + New Features

sampling duration for CPU consumption

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 354 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lohithgm
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • L lohithgm

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved