MCPcopy Create free account
hub / github.com/BruceDevices/firmware / printMemoryUsage

Function printMemoryUsage

src/core/utils.cpp:283–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void printMemoryUsage(const char *msg) {
284 Serial.printf(
285 "%s:\nPSRAM: [Free: %lu, max alloc: %lu],\nRAM: [Free: %lu, "
286 "max alloc: %lu]\n\n",
287 msg,
288 ESP.getFreePsram(),
289 ESP.getMaxAllocPsram(),
290 ESP.getFreeHeap(),
291 ESP.getMaxAllocHeap()
292 );
293}
294
295String repeatString(int length, String character) {
296 String result = "";

Callers 1

interpreterHandlerFunction · 0.85

Calls 1

printfMethod · 0.45

Tested by

no test coverage detected