memray
OfficialFind memory leaks with temporal flamegraphs.
Software Engineering#performance analysis#memory profiling#flamegraph#memray#python debugging#temporal allocations
Authorscverse
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you pinpoint where and when a Python program allocates memory so you can diagnose leaks, spikes, or inefficient allocation patterns instead of guessing.
Core Features & Use Cases
- Profile memory over time: Use temporal flamegraphs to understand allocation behavior across the run, not just peak usage.
- Generate a browser-friendly report: Produce an interactive HTML flamegraph from a recorded allocation trace.
- Practical debugging workflow: Compare reports between runs to validate whether changes reduced churn or leaks.
Use Case: You run a data processing script in spatial omics and suspect memory growth during specific steps; this skill profiles allocations and visualizes where the memory pressure originates.
Quick Start
Profile your script by running it with the memray-run step (for example: pixi run -e profiling memray-run your_script.py).
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: memray Download link: https://github.com/scverse/spatialdata/archive/main.zip#memray Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.