https://bloomberg.github.io/memray/index.html
Memray logo
* Documentation
* Installation
* Examples
* Pytest plugin
* Community
Github PyPI Discussions
>
Summary reporter screenshot
More than just a profiler
Memray does much more than just telling you where your application is
spending memory and which memory is being leaked. For instance, it
can help you find wasteful temporary allocations that you can avoid
to speed up your program.
See how >>
pytest logo
Prevent regressions
You can easily integrate Memray into your pytest test suite. Learn
where each test is spending its memory with per-test allocation
summaries with useful statistics, or set limits on how much memory
each test is allowed to use to prevent memory regressions!
Discover the plugin >>
---------------------------------------------------------------------
Native allocation tracking. No more leaks in C extensions.
Memray sees allocations made by C/C++/Rust libraries. This means that
when you use Memray to profile your Python code, you'll be able to
see the entire call stack, including any calls to C/C++/Rust
functions. This can be incredibly useful for tracking down memory
issues, as it allows you to see exactly where and how memory is being
allocated. Whether you're working on a complex project with many
layers of code, or simply trying to optimize your Python scripts for
better performance, Memray is an invaluable tool that can help you
understand and improve your code's memory usage.
Native mode tracking
---------------------------------------------------------------------
Catch it as it happens! Live memory profiling.
One of the standout features of Memray is its ability to provide a
live, real-time view of memory allocation. With the live mode, you
can see exactly how memory is being used as your Python code is
executing. This can be particularly useful for debugging and
optimizing your code, as you can see in real-time how different parts
of your code are impacting memory usage.
Live mode
---------------------------------------------------------------------
One log, many analyses. There's a reporter for everyone!
One of the great things about Memray is its flexibility and
customizability. After running a memory profiling session, you can
use a wide range of reporters to view the data in different ways. For
example, you can use the flamegraph reporter to see a visual
representation of the call stack and how memory is being used at each
level. Or, you can use the statistical reporter to see summary
statistics and trends in your memory usage. And these are just a few
of the many reporters available in Memray - there are many more to
choose from, allowing you to view your data in the way that makes the
most sense for your specific needs.
Many reporters
Memray in the media
Memray: a memory profiler for Python
Hacker News - 2022-04-20
#282: Don't Embarrass Me in Front of The Wizards
PythonBytes (podcast) - 2022-05-03
SD Times Open-Source Project of the Week: Memray
SD Times - 2022-05-06
New Memray memory profiler tracks both Python and native code
DevClass - 2022-05-12
Memray project showcases why Bloomberg is an 'open source first'
company
Voice of Open Source - 2022-05-17
Memray Shines a Light on Python-C/C++ Memory Problems
Datanimi - 2022-05-18
#107 -- Interview With Pablo of Bloomberg about Memray
Console - 2022-05-29
Episode 128: Using a Memory Profiler in Python & What It Can Teach
You
The Real Python Podcast - 2022-010-7
Top Python libraries of 2022
Tyro Labs - 2022-012-26
Developer Q&A: Pablo Galindo Salgado Talks Python's Speedy Future
Dice - 2022-01-05
Bloomberg just Open sourced Memray a memory profiler for Python
Reddit - 2022-04-20
Research Computing Teams #119, 23 Apr 2022
Research Computing Teams - 2022-04-23
Console #102 -- Snapdrop, Memray, and Headless Recorder
Console - 2022-04-24
Bloomberg Open-Sources Python Memory Profiler Memray
InfoQ - 2022-04-26
Check your Memray: Bloomberg open sources tool for Python apps
The Stack - 2022-04-29
Bloomberg Open-Sources Memray
Market Tech - 4/30/22
Back to top
GitHub Page * License