Friday, August 19, 2022
HomeSoftware DevelopmentSD Instances Open-Supply Mission of the Week: Memray

SD Instances Open-Supply Mission of the Week: Memray


Memray is an open-source reminiscence profiler for Python, developed by Bloomberg. Bloomberg has over 3,000 software program builders who code in Python, in addition to a Python Infrastructure staff to assist these builders. 

The staff created Memray to allow builders to investigate their reminiscence allocations, thus enabling them to cut back reminiscence utilization, discover leaks, and establish reminiscence hotspots in code. 

The software was just lately open-sourced in order that Python builders everywhere in the world might make the most of it. 

Some key options of Memray embrace tracing of each perform name, dealing with of native calls in C/C++ library, report technology, and the flexibility to work with each Python and native threads.

Based on Bloomberg, a number of the advantages of Memray embrace pace, gathering of huge quantities of information, that it may be activated and deactivated at runtime, and that it exhibits the merged Python and C/C++ stack for every allocation in order that it may be understood how reminiscence is being allotted in native extensions.  

“There are some nice open supply profilers out there to determine the place a Python program is spending its time. Nevertheless, there haven’t been many nice options for determining the place a Python program is spending its reminiscence, particularly when that reminiscence is allotted by a local extension module. My hope is that the subsequent time somebody wonders why a script is utilizing a lot reminiscence, they’re in a position to determine it out while not having to alter something about their program apart from how they run it,” mentioned Pablo Galindo Salgado, member of the Python Infrastructure staff at Bloomberg, in an interview posted on Bloomberg’s weblog



Most Popular

Recent Comments