how to properly log and understand CPU load by a task on APM ? (ArduPlane)

514 views
Skip to first unread message

André Kjellstrup

unread,
May 15, 2014, 11:59:39 AM5/15/14
to drones-...@googlegroups.com
I am adding code called by AP_Scheduler. 
How can I check how much it influence the overall performance of APM ? 

André Kjellstrup

unread,
May 15, 2014, 12:35:02 PM5/15/14
to drones-...@googlegroups.com

Randy Mackay

unread,
May 15, 2014, 8:52:26 PM5/15/14
to drones-...@googlegroups.com

Andre,

 

      There’s a load value that is visible in the mission planner.  This value comes from the scheduler.load_average().

 

      You can also turn on the SCHEDULE_DEBUG parameter and it will dump out information about missed tasks to the console.  In arducopter you’ll see a lot of warnings though even in master with none of your changes included.

 

     The PM message also has information about how many main loops took longer than 10500 micro seconds (i.e. 10.5 milliseconds).

 

-Randy

--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CPULoad.png

André Kjellstrup

unread,
May 16, 2014, 1:23:50 AM5/16/14
to drones-...@googlegroups.com
thank you .

On 16 May 2014 02:52, 'Randy Mackay' via drones-discuss
> You received this message because you are subscribed to a topic in the
> Google Groups "drones-discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/drones-discuss/z-4TmfxWFyQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages