From b430d63a228cfe44348516df49668ca6aa73439a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Mar 2024 06:11:45 +1100 Subject: [PATCH] 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 --- libraries/AP_Logger/AP_Logger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index b004284b89a72e..5ea3d7b595be76 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -1567,7 +1567,10 @@ void AP_Logger::prepare_at_arming_sys_file_logging() */ static const char *log_content_filenames[] = { "@SYS/uarts.txt", +#ifdef HAL_DEBUG_BUILD + // logging dma.txt has a performance impact "@SYS/dma.txt", +#endif "@SYS/memory.txt", "@SYS/threads.txt", "@SYS/timers.txt",