<div dir="ltr"><p>Hi,</p><p>thanks for your reply.</p><p>it seems that we can only enable profiling on version 2.1. but i work on version 1.5.2 currently. </p><p>i have done a lot of work on version 1.5.2 so it's hard to me to change to 2.1. (sorry i don't mention the version used earlier)</p>
<p>if i work on version 1.5.2, how can i measure the CPU utilization?</p><p>Any suggestions are welcome.</p><p></p><p>best,</p><p>kashin</p><br><div class="gmail_quote">2008/7/22 Geoffrey Lee <<a href="mailto:glee@ok-labs.com">glee@ok-labs.com</a>>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">On Fri, Jul 18, 2008 at 03:13:44PM +0800, kashin Lin wrote:<br>
> Hi,<br>
><br>
> i write a iguana application in the iguana/example directory. the<br>
> application only executes in a few secs and<br>
><br>
> will be blocked(yield CPU) and resume when execution. i want to measure the<br>
> CPU utilization when running<br>
><br>
> the application (no OKLinux).<br>
><br>
> i remember there is an idle thread in okl4 which will be selected if CPU is<br>
> idle. so my first idea<br>
><br>
> is to get the "total idle thread execution time" when in application<br>
> execution meantime (a few secs).<br>
><br>
> then the CPU utilization will be: 1 - "total idle thread exec time" /<br>
> "application execution meantime"<br>
><br>
> 1. but how to get the idle thread execution time?<br>
><br>
> 2. similarly, how can i measure "how long does the application really be<br>
> selected to run in the meantime of execution?"<br>
><br>
> Does OKL4/Iguana do any statistics or have any function can help me know<br>
> those information?<br>
><br>
> p.s. in my platform, there is a harware time can use to measure the time ex:<br>
><br>
> start = read_counter();<br>
<br>
<br>
</div>You can compile with enable_profiling=True to get profiling dumps<br>
from the kernel debugger.<br>
<br>
-gl<br>
<div class="Ih2E3d"><br>
><br>
> ...<br>
><br>
> end = read_counter();<br>
><br>
> length = end - start;<br>
><br>
> any suggestions is welcome. thanks in advance.<br>
><br>
> best,<br>
><br>
> kashin<br>
<br>
</div>> _______________________________________________<br>
> Developer mailing list<br>
> <a href="mailto:Developer@okl4.org">Developer@okl4.org</a><br>
> <a href="https://lists.okl4.org/mailman/listinfo/developer" target="_blank">https://lists.okl4.org/mailman/listinfo/developer</a><br>
<font color="#888888"><br>
<br>
--<br>
<br>
</font></blockquote></div><br></div>