Repository navigation
Mimalloc #868
Mimalloc
#868
|
Will memray correctly track the allocations/frees if I have set the PYTHONMALLOC=mimalloc during execution? |
Answered by
godlygeek
Apr 8, 2026
Replies: 1 comment
|
Sorry @rahulReddy2001, I didn't see a notification for this question! Memray won't interpose the mimalloc allocator, so it won't totally work, but if you pass the |
0 replies
Answer selected by
godlygeek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry @rahulReddy2001, I didn't see a notification for this question!
Memray won't interpose the mimalloc allocator, so it won't totally work, but if you pass the
--trace-python-allocatorsflag, Memray will see when allocations are made with PyMem_Malloc() or PyObject_Malloc() or PyMem_RawMalloc(). If you pass that flag whenever you're using mimalloc, things will work as you expect.