Altera_Forum
Honored Contributor
20 years agoI need to know NIOS2 CPU utilization
hello experts,
My problem is, that I would like to measure NIOS2 CPU utilization (CPU load) in uClinux under different applications running. Maybe, there already exist some application in uClinux , which can measure this, but I am not sure. I also appreciate some ideas how to program my own monitoring application... My first idea is to make so called background application with "while(1)" command, which will count in idle states (when no other application in system runs) some special counter and from this value after some period (for example 25ms) I will be able to compute CPU load in [%]. I come out from my own ideas, which were also nicely described in this paper: http://www.embedded.com/showarticle.jhtml?...icleid=23900614 (http://www.embedded.com/showarticle.jhtml?articleid=23900614). But I am not sure how it will work in uClinux multitasking system. I will be glad for any valuable answer http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif