Skip to content

Commit

Permalink
AP_Logger: avoid logging dma.txt for normal builds
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tridge committed Mar 18, 2024
1 parent 0c2e9a0 commit b430d63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Logger/AP_Logger.cpp
Expand Up @@ -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",
Expand Down

0 comments on commit b430d63

Please sign in to comment.