Page 1 of 1

Resource Usage Profile

Posted: Tue Jul 30, 2019 5:48 pm
by droneEnthusiast123
Hi,

I was wondering if there was any update to the runtime statistics found here: https://www.bitcraze.io/2012/04/some-pr ... ware-side/ ?
If not, I would like to profile the drone to see how much time each task uses. Does anyone know how I would go about doing this? How did you guys go about getting the previous statistics?

Re: Resource Usage Profile

Posted: Tue Aug 06, 2019 7:51 am
by kimberly
That blog post is from a verrrrry long time ago ;) Way before my time, but I'll ask the oldtimers here how they did it if they can still remember.

In the mean time, have you looked at this: http://www.freertos.org/rtos-run-time-stats.html ? We use freertos on the Crazyflie, so you might be able to use the inbuild functions for that. I haven't worked with it myself so keep us up to date if you managed to get this to work. This probably is useful for others as sell

Re: Resource Usage Profile

Posted: Tue Aug 06, 2019 10:12 pm
by droneEnthusiast123
Thanks Kimberly,

I used that function! For my build, the crazyflie was idle 70% of the time. :)