Skip to content

Releases: Alcheri/Mem

v1.0.0

22 Apr 11:24

Choose a tag to compare

Mem is a new Limnoria plugin that provides memory usage and allocation insights for your bot.

What's Included

  • New mem usage command to report process memory (RSS, VMS)
  • New mem top command to display top tracemalloc allocation sources
  • New mem stats command for extended metrics (RSS, VMS, Shared, Data)

Stability and Compatibility

  • Safe tracemalloc startup guard to avoid reload/init crashes when tracing is already active
  • Portable memory field handling for systems where shared/data are not available
  • Friendly fallback message when no allocation snapshot data exists yet

Packaging and Quality

  • Added psutil to project dependencies
  • Narrowed config i18n fallback to ImportError only
  • Added focused tests for:
    • Command behavior (usage, top, stats, unknown subcommand)
    • tracemalloc guard logic
    • Empty snapshot handling
    • Missing optional memory fields

Commands

  • !mem usage
  • !mem top
  • !mem stats

Dependencies

  • limnoria
  • psutil