AP_Logger: avoid logging dma.txt for normal builds

logging of dma.txt currently does no good as the first time you read
it you get no content. It then enables statistics in the shared_dma
code which makes all DMA operations slower, so all we are doing is
making DMA slower
This commit is contained in:
Andrew Tridgell 2024-03-19 06:11:45 +11:00 committed by Randy Mackay
parent fc705cf229
commit ce490163fe
1 changed files with 3 additions and 0 deletions

View File

@ -1566,7 +1566,10 @@ void AP_Logger::prepare_at_arming_sys_file_logging()
*/ */
static const char *log_content_filenames[] = { static const char *log_content_filenames[] = {
"@SYS/uarts.txt", "@SYS/uarts.txt",
#ifdef HAL_DEBUG_BUILD
// logging dma.txt has a performance impact
"@SYS/dma.txt", "@SYS/dma.txt",
#endif
"@SYS/memory.txt", "@SYS/memory.txt",
"@SYS/threads.txt", "@SYS/threads.txt",
"@SYS/timers.txt", "@SYS/timers.txt",