The Memray memory profiler for Python open sourced #OpenSource
Bloomberg has open sourced Memray, a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself.
It can generate several different types of reports to help you analyze the captured memory usage data. While commonly used as a CLI tool, it can also be used as a library to perform more fine-grained profiling tasks.
Traces every function call so it can accurately represent the call stack, unlike sampling profilers.
Also handles native calls in C/C++ libraries so the entire call stack is present in the results.
Blazing fast! Profiling causes minimal slowdown in the application. Tracking native code is somewhat slower, but this can be enabled or disabled on demand.
It can generate various reports about the collected memory usage data, like flame graphs.
Works with Python threads.
Works with native-threads (e.g. C++ threads in C extensions).
Memray can help with the following problems:
Analyze allocations in applications to help discover the cause of high memory usage.
Find memory leaks.
Find hotspots in code which cause a lot of allocations.
It’s fully open source via an Apache 2 license.
Note: Memray only works on Linux and cannot be installed on other platforms.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.