Resource Usage Profile

Firmware/software/electronics/mechanics
Post Reply
droneEnthusiast123
Beginner
Posts: 10
Joined: Wed Jun 20, 2018 10:24 pm

Resource Usage Profile

Post by droneEnthusiast123 » Tue Jul 30, 2019 5:48 pm

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?



kimberly
Expert
Posts: 110
Joined: Fri Jul 06, 2018 11:13 am

Re: Resource Usage Profile

Post by kimberly » Tue Aug 06, 2019 7:51 am

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

droneEnthusiast123
Beginner
Posts: 10
Joined: Wed Jun 20, 2018 10:24 pm

Re: Resource Usage Profile

Post by droneEnthusiast123 » Tue Aug 06, 2019 10:12 pm

Thanks Kimberly,

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

Post Reply