From 19ac1364d5698c5df06ed130fd3deadb98d819f1 Mon Sep 17 00:00:00 2001 From: knj Date: Thu, 7 Sep 2023 09:56:57 +0200 Subject: [PATCH 1/2] add update_mem() call for 5ms rendering --- apps/decoder.c | 6 ++++++ lib_com/options.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/apps/decoder.c b/apps/decoder.c index c9741068f5..aa548ab819 100644 --- a/apps/decoder.c +++ b/apps/decoder.c @@ -2470,10 +2470,16 @@ static ivas_error decodeG192( if ( vec_pos_update == 0 ) { update_wmops(); +#ifdef FIX_RAM_COUNTING_5MS_RENDERING + update_mem(); + export_mem( "mem_analysis.csv" ); +#endif } +#ifndef FIX_RAM_COUNTING_5MS_RENDERING #ifdef MEM_COUNT_DETAILS export_mem( "mem_analysis.csv" ); #endif +#endif #endif } diff --git a/lib_com/options.h b/lib_com/options.h index e7530c4138..b06469192d 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -158,6 +158,8 @@ #define OSBA_SPLIT_RENDERING #endif +#define FIX_RAM_COUNTING_5MS_RENDERING /* FhG: fix for correct RAM reporting with 5ms rendering */ + /* #################### End BE switches ################################## */ /* #################### Start NON-BE switches ############################ */ -- GitLab From e63de1105058f6e41c7663e023e33f7979e459aa Mon Sep 17 00:00:00 2001 From: knj Date: Thu, 7 Sep 2023 10:20:04 +0200 Subject: [PATCH 2/2] use needed switch around export_mem --- apps/decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/decoder.c b/apps/decoder.c index aa548ab819..33dc818f78 100644 --- a/apps/decoder.c +++ b/apps/decoder.c @@ -2472,7 +2472,9 @@ static ivas_error decodeG192( update_wmops(); #ifdef FIX_RAM_COUNTING_5MS_RENDERING update_mem(); +#ifdef MEM_COUNT_DETAILS export_mem( "mem_analysis.csv" ); +#endif #endif } #ifndef FIX_RAM_COUNTING_5MS_RENDERING -- GitLab