Is there a way to tell how many resources and CPU, the Fez boards are currently using?
I’ve just created a small projekt on a Panda, that involves an RS232 Modbus server and some separate calculation logic. Multiple threads, C# implemented CRC16, heavy usage of Sin/Cos, lots of allocations, huge blob processing… You know, all the usual stuff.
And it seems to work just fine. But I would like to know if there’s room for more and which rutines I should consider optimizing. Ergo I would like to profile my project.
(By “room” I mostly refere to “calculation time”)
Is there a way to tap the “idle” thread or do profile analyzing or something?
I posted a Test/Profile class on Fezzer that may help.
For profiling, you do need to call Start/Stop methods at points in your methods, but it does keep running totals going for you to report on later in your program. hth
[url]http://www.fezzer.com/project/205/test-andor-profile/[/url]
@ wouter. Thanks. It is true this is clock-on-the-wall time. However, without more built-in support, I did not find a better way (unless there is some support I have missed which is likely). Even so, it can still provide some value for common senarios. Milage may vary.