Memory::Profiler

Memory::Profiler

Efficient memory allocation tracking focused on retained objects only. Automatically tracks allocations and cleans up when objects are freed, giving you precise data on memory leaks.

Development Status

Features

Usage

Please browse the source code index or refer to the guides below.

Getting Started

This guide explains how to use memory-profiler to automatically detect and diagnose memory leaks in Ruby applications.

Rack Integration

This guide explains how to integrate memory-profiler into Rack applications for automatic memory leak detection.

Releases

Please browse the releases for more details.

v1.1.7

  • Expose Capture#statistics for debugging internal memory tracking state.

v1.1.6

  • Write barriers all the things.
  • Better state handling and object increment/decrement counting.
  • Better call tree handling - including support for prune!.

v1.1.5

  • Use queue for newobj too to avoid invoking user code during object allocation.

v1.1.2

  • Fix handling of GC compaction (I hope).

v0.1.0

  • Initial implementation.

Contributing

We welcome contributions to this project.

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create new Pull Request.

Developer Certificate of Origin

In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.

Community Guidelines

This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.