Skip to content

Commit bc5f095

Browse files
committed
improv mem logging
1 parent e1a325f commit bc5f095

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/oap-common/oap_debug.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ void log_heap_size(const char* msg) {
6161
size_t free_heap = xPortGetFreeHeapSize();
6262
if (heap_samples[sample_idx%SAMPLES] == 0) heap_samples[sample_idx%SAMPLES] = free_heap;
6363

64-
65-
66-
ESP_LOGD(TAG, "heap min %d avg %d free %d change %d (%s)",
64+
ESP_LOGD(TAG, "heap min %d avg %d (%s)",
6765
xPortGetMinimumEverFreeHeapSize(),
6866
avg_free_heap_size(),
69-
free_heap,
70-
free_heap-heap_samples[sample_idx%SAMPLES],
7167
msg);
7268
heap_samples[sample_idx%SAMPLES] = free_heap;
7369
sample_idx++;

0 commit comments

Comments
 (0)