Skip to content

Commit

Permalink
improv mem logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kglowacki committed Oct 9, 2017
1 parent e1a325f commit bc5f095
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/oap-common/oap_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,9 @@ void log_heap_size(const char* msg) {
size_t free_heap = xPortGetFreeHeapSize();
if (heap_samples[sample_idx%SAMPLES] == 0) heap_samples[sample_idx%SAMPLES] = free_heap;



ESP_LOGD(TAG, "heap min %d avg %d free %d change %d (%s)",
ESP_LOGD(TAG, "heap min %d avg %d (%s)",
xPortGetMinimumEverFreeHeapSize(),
avg_free_heap_size(),
free_heap,
free_heap-heap_samples[sample_idx%SAMPLES],
msg);
heap_samples[sample_idx%SAMPLES] = free_heap;
sample_idx++;
Expand Down

0 comments on commit bc5f095

Please sign in to comment.