mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
Gate dump_stats() behind verbose log level (4.2s heap introspection freeze on ESP32)
This commit is contained in:
1 parent
9d6bbac9a6
commit
753dce608e
1 file changed
+5
-3
+5
-3
@@ -684,9 +684,11 @@ Transport::DestinationEntry empty_destination_entry;
|
||||
|
||||
unsigned long _tc3 = millis();
|
||||
|
||||
//#ifndef NDEBUG
|
||||
dump_stats();
|
||||
//#endif
|
||||
// dump_stats() takes 4+ seconds on ESP32 (heap introspection is slow)
|
||||
// Only run when verbose logging is enabled
|
||||
if (RNS::loglevel() >= RNS::LOG_VERBOSE) {
|
||||
dump_stats();
|
||||
}
|
||||
unsigned long _tc4 = millis();
|
||||
if ((_tc4 - _tc0) > 100) {
|
||||
Serial.printf("[JOBS-TIMING] cull_kd=%lums cull_at=%lums tables=%lums stats=%lums TOTAL=%lums\n",
|
||||
|
||||
Reference in new issue
Block a user