| 2421 | } |
| 2422 | |
| 2423 | std::string getMemoryReport() |
| 2424 | { |
| 2425 | const size_t capacity = JSON_OBJECT_SIZE(10); |
| 2426 | DynamicJsonDocument doc(capacity); |
| 2427 | writeDoc(doc, "totalFlash", System::getTotalFlash()); |
| 2428 | writeDoc(doc, "usedFlash", System::getUsedFlash()); |
| 2429 | writeDoc(doc, "physicalFlash", Storage::getInstance().GetFlashSize()); |
| 2430 | writeDoc(doc, "staticAllocs", System::getStaticAllocs()); |
| 2431 | writeDoc(doc, "totalHeap", System::getTotalHeap()); |
| 2432 | writeDoc(doc, "usedHeap", System::getUsedHeap()); |
| 2433 | return serialize_json(doc); |
| 2434 | } |
| 2435 | |
| 2436 | static bool _abortGetHeldPins = false; |
| 2437 |
nothing calls this directly
no test coverage detected