diff options
author | Bad Diode <bd@badd10de.dev> | 2024-01-23 11:21:14 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-01-23 11:21:14 +0100 |
commit | 3c54d94191b0888af3712f7c330943068604cab8 (patch) | |
tree | 9207d386470d084fc1f23becd7dfd0039204bef4 /src/profiling.c | |
parent | a7ce765b1b57ec8a528263420852ed36da6d9d84 (diff) | |
download | stepper-3c54d94191b0888af3712f7c330943068604cab8.tar.gz stepper-3c54d94191b0888af3712f7c330943068604cab8.zip |
Add improved renderer routines with DMA option
Diffstat (limited to 'src/profiling.c')
-rw-r--r-- | src/profiling.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/profiling.c b/src/profiling.c index 6b073ed..07f4bbf 100644 --- a/src/profiling.c +++ b/src/profiling.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #if PROF_ENABLE > 0 | 9 | #if PROF_ENABLE > 0 |
10 | 10 | ||
11 | #ifndef PROF_RESET_MINMAX | 11 | #ifndef PROF_RESET_MINMAX |
12 | #define PROF_RESET_MINMAX false | 12 | #define PROF_RESET_MINMAX true |
13 | #endif | 13 | #endif |
14 | 14 | ||
15 | // Maximum number of profiling to monitor. | 15 | // Maximum number of profiling to monitor. |
@@ -74,7 +74,7 @@ bool prof_show = true; | |||
74 | prof_frame_avg, \ | 74 | prof_frame_avg, \ |
75 | (u32)((u64)280896 * 60 / (prof_frame_avg + 1)));\ | 75 | (u32)((u64)280896 * 60 / (prof_frame_avg + 1)));\ |
76 | txt_drawf_small("MAX: %.9l/%l", 8 * 19, 0, COL_FG, \ | 76 | txt_drawf_small("MAX: %.9l/%l", 8 * 19, 0, COL_FG, \ |
77 | prof_frame_time_max,280896);\ | 77 | prof_frame_time_max, 280896);\ |
78 | for (size_t idx = 0; idx < PROF_NUM; idx++) { \ | 78 | for (size_t idx = 0; idx < PROF_NUM; idx++) { \ |
79 | txt_drawf_small("%s %.9l (%.9l %.9l) %08x:%08x", 0, 8 * (idx + 1), COL_FG, \ | 79 | txt_drawf_small("%s %.9l (%.9l %.9l) %08x:%08x", 0, 8 * (idx + 1), COL_FG, \ |
80 | prof_type_str[idx], \ | 80 | prof_type_str[idx], \ |
@@ -91,6 +91,7 @@ bool prof_show = true; | |||
91 | if (prof_reset_minmax) { \ | 91 | if (prof_reset_minmax) { \ |
92 | prof_min[idx] = -1; \ | 92 | prof_min[idx] = -1; \ |
93 | prof_max[idx] = 0; \ | 93 | prof_max[idx] = 0; \ |
94 | prof_frame_time_max = 0; \ | ||
94 | } \ | 95 | } \ |
95 | prof_times[idx] = 0; \ | 96 | prof_times[idx] = 0; \ |
96 | prof_count[idx] = 0; \ | 97 | prof_count[idx] = 0; \ |