We’re looking for a sample of code to monitor the CPU-load on Linux, Windows and Mac OS X. The idea is to display the CPU-load (in percent) in IanniX transport bar (like many software does).
I would like to see this feature, but IMHO, this is a potential can of worms and I recommend deferring this feature to a later point in the development of Iannix.
I believe doing process performance-profiling portably within a multi-platform program like Iannix is one of those esoteric design issues that carries subtle gotchas. Native Instruments seem to have gotten it right in their dual-platform (Mac/Win) Reaktor. But because Max/MSP in their CPU utilization display only counts DSP loading and no control-rate functions, it is often in profound disagreement with the OS’es own profile tool (I’ve seen 200%-500% differences).
I think all of these variables are design factors in performance monitoring by a single process:
Despite all the buzzwords, I’m not a sysinternals guru and in this case I might be more like Chicken Little. So please take all of this with a pinch of salt.
Cheers,
–Bob
Yes Bob, I agree! I started working on it but it is too complex (numbers of CPU, no Qt-API…). That’s why I ask the community for some help!
However, I didn’t know that MaxMSP CPU usage wasn’t precise 🙂
What I want is the percentage that Windows (taskmanager), Linux and Mac OS X (with top command) report….
Hi Guillaume, I do understand what you want. Taskmanager is not multiplatform — top is, well, sort of. Writing it initially is one thing, but maintaining all three platform versions of code over the long-term that will likely require you to get closer to the metal (i.e., calling native APIs) over the lifetime of Iannix is yet another (e.g., how different will the Windows-8 API be from the current Win32, for example).
It’s entirely possible, but it just a imposes a new level of complication you may not need at the moment. That said, I’d love to have it as I often invoke TaskMgr, Profiler, or Activity Monitor (when I can have pretty graphics, I stay away from the command line:–) to check up on Iannix’s overhead.
Cheers,
–Chicken Little.
@Guillaume wrote:
Yes Bob, I agree! I started working on it but it is too complex (numbers of CPU, no Qt-API…). That’s why I ask the community for some help!
However, I didn’t know that MaxMSP CPU usage wasn’t precise 🙂
What I want is the percentage that Windows (taskmanager), Linux and Mac OS X (with top command) report….
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |