8000 metric for heap fragmentation by d-a-v · Pull Request #5090 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

metric for heap fragmentation #5090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Sep 10, 2018
Merged
Prev Previous commit
Next Next commit
use astyle for example
  • Loading branch information
d-a-v committed Sep 9, 2018
commit 469729a4f2deac21b90b291cd847ad35bd771fa5
6 changes: 3 additions & 3 deletions libraries/esp8266/examples/HeapMetric/HeapMetric.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <ESP8266WiFi.h>

void stats (const char* what) {
void stats(const char* what) {
// we could use getFreeHeap() getMaxFreeBlockSize() and getHeapFragmentation()
// or all at once:
uint32_t free;
Expand All @@ -17,7 +17,7 @@ void stats (const char* what) {
Serial.println(what);
}

void tryit (int blocksize) {
void tryit(int blocksize) {
void** p;
int blocks;

Expand Down Expand Up @@ -75,5 +75,5 @@ void setup() {
tryit(15);
}

void loop () {
void loop() {
}
0