MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / _debug_stack

Method _debug_stack

libraries/AP_HAL_Linux/Scheduler.cpp:144–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void Scheduler::_debug_stack()
145{
146 uint64_t now = AP_HAL::millis64();
147
148 if (now - _last_stack_debug_msec > 5000) {
149 fprintf(stderr, "Stack Usage:\n"
150 "\ttimer = %zu\n"
151 "\tio = %zu\n"
152 "\trcin = %zu\n"
153 "\tuart = %zu\n",
154 _timer_thread.get_stack_usage(),
155 _io_thread.get_stack_usage(),
156 _rcin_thread.get_stack_usage(),
157 _uart_thread.get_stack_usage());
158 _last_stack_debug_msec = now;
159 }
160}
161
162void Scheduler::microsleep(uint32_t usec)
163{

Callers

nothing calls this directly

Calls 2

millis64Function · 0.70
get_stack_usageMethod · 0.45

Tested by

no test coverage detected