Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 896:f29369fff71e Evo_2_23
Development Feature Runtime in Debugview:
Added a compile switch which allows to show the deco, grafix and main loop runtimes in the T7 debug view.
author | ideenmodellierer |
---|---|
date | Thu, 26 Sep 2024 18:32:36 +0200 |
parents | 0e084e5554a8 |
children | 2225c467f1e9 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Wed Sep 18 14:31:06 2024 +0200 +++ b/Discovery/Src/t7.c Thu Sep 26 18:32:36 2024 +0200 @@ -3955,6 +3955,12 @@ t7cY0free.WindowY0 = t7cH.WindowY0 - 5 - 2 * t7cY0free.WindowLineSpacing; t7cY0free.WindowNumberOfTextLines = 3; +#ifdef T7_DEBUG_RUNTIME + textpointer += snprintf(&text[textpointer],50,"Main loop %ld\n\r",getMainLoopTime()); + textpointer += snprintf(&text[textpointer],50,"Grafic loop %ld\n\r",getGfxLoopTime()); + textpointer += snprintf(&text[textpointer],50,"Decoloop %ld\n\r",getDecoLoopTime()); + GFX_write_string(&FontT24, &t7cY0free, text, 1); +#else textpointer += snprintf(&text[textpointer],50,"Ambient [bar]\n\r"); textpointer += snprintf(&text[textpointer],50,"Surface [bar] + salt\n\r"); // textpointer += snprintf(&text[textpointer],50,"Difference [mbar]\n\r"); @@ -3972,6 +3978,7 @@ ,settingsGetPointer()->salinity ,stateUsed->lifeData.counterSecondsShallowDepth); GFX_write_string(&FontT42, &t7cY0free, text, 1); +#endif }