Revision e5742249 core/src/aos_system.c
core/src/aos_system.c | ||
---|---|---|
540 | 540 |
#if (AMIROOS_CFG_DBG == true) |
541 | 541 |
chprintf(stream, "\tthread stack size: %u bytes\n", aosThdGetStacksize(aos.shell.thread)); |
542 | 542 |
#if (CH_DBG_FILL_THREADS == TRUE) |
543 |
chprintf(stream, "\tstack peak utilization: %u bytes (%.2f%%)\n", aosThdGetStackPeakUtilization(aos.shell.thread), (double)((float)(aosThdGetStackPeakUtilization(aos.shell.thread)) / (float)(aosThdGetStacksize(aos.shell.thread)) * 100.0f)); |
|
543 |
{ |
|
544 |
const size_t utilization = aosThdGetStackPeakUtilization(aos.shell.thread); |
|
545 |
chprintf(stream, "\tstack peak utilization: %u bytes (%.2f%%)\n", utilization, (double)((float)utilization / (float)(aosThdGetStacksize(aos.shell.thread)) * 100.0f)); |
|
546 |
} |
|
544 | 547 |
#endif /* (CH_DBG_FILL_THREADS == TRUE) */ |
545 | 548 |
#endif /* (AMIROOS_CFG_DBG == true) */ |
546 | 549 |
_printSystemInfoSeparator(stream, '=', SYSTEM_INFO_WIDTH); |
Also available in: Unified diff