Skip to content

Berry add 'gc_heap' and 'gc_time' to 'tasmota.memory()'#24054

Merged
s-hadinger merged 1 commit into
arendst:developmentfrom
s-hadinger:berry_memory_gc_heap_time
Oct 24, 2025
Merged

Berry add 'gc_heap' and 'gc_time' to 'tasmota.memory()'#24054
s-hadinger merged 1 commit into
arendst:developmentfrom
s-hadinger:berry_memory_gc_heap_time

Conversation

@s-hadinger
Copy link
Copy Markdown
Collaborator

Description:

Berry, add the following fields to tasmota.memory():

  • gc_time: time in milliseconds of the last garbage collection
  • gc_heap: free heap memory when the last garbage collection happened

tasmota.memory("gc_heap") provides a more consistent view of the memory because you don't get the jitter of objects allocated but not yet freed.

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.8
  • The code change is tested and works with Tasmota core ESP32 V.3.1.4
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@s-hadinger s-hadinger merged commit 4ccc9f6 into arendst:development Oct 24, 2025
64 checks passed
echo-bravo-yahoo pushed a commit to echo-bravo-yahoo/Tasmota that referenced this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant