Telegram Group & Telegram Channel
وقتی برنامه‌ای می‌نویسیم، برای بررسی جزئی‌تر اجرای آن و منابع مصرفی از پروفایلینگ استفاده می‌کنیم. در پایتون، ابزار Memray یک پروفایلر حافظه قدرتمند است.

Memray شبیه به htop، مصرف حافظه را به‌صورت لحظه‌ای برای هر تابع نمایش می‌دهد و تغییرات مصرف حافظه را حین اجرای هر تابع پروفایل می‌کند. این ابزار به‌ویژه برای شناسایی نشت حافظه و بهینه‌سازی برنامه‌ها مفید است.

با این حال، برای ثبت حداکثر مصرف حافظه یک تابع در طول اجرای آن، باید دید آیا Memray امکان ثبت لحظه‌ای مصرف حافظه در فایل را دارد. در این صورت، می‌توانیم به‌طور دقیق‌تر حداکثر مصرف حافظه هر تابع را نیز به دست آوریم.

https://github.com/bloomberg/memray



tg-me.com/PyLab/622
Create:
Last Update:

وقتی برنامه‌ای می‌نویسیم، برای بررسی جزئی‌تر اجرای آن و منابع مصرفی از پروفایلینگ استفاده می‌کنیم. در پایتون، ابزار Memray یک پروفایلر حافظه قدرتمند است.

Memray شبیه به htop، مصرف حافظه را به‌صورت لحظه‌ای برای هر تابع نمایش می‌دهد و تغییرات مصرف حافظه را حین اجرای هر تابع پروفایل می‌کند. این ابزار به‌ویژه برای شناسایی نشت حافظه و بهینه‌سازی برنامه‌ها مفید است.

با این حال، برای ثبت حداکثر مصرف حافظه یک تابع در طول اجرای آن، باید دید آیا Memray امکان ثبت لحظه‌ای مصرف حافظه در فایل را دارد. در این صورت، می‌توانیم به‌طور دقیق‌تر حداکثر مصرف حافظه هر تابع را نیز به دست آوریم.

https://github.com/bloomberg/memray

BY Python_Labs🐍




Share with your friend now:
tg-me.com/PyLab/622

View MORE
Open in Telegram


Python_Labs Telegram | DID YOU KNOW?

Date: |

However, analysts are positive on the stock now. “We have seen a huge downside movement in the stock due to the central electricity regulatory commission’s (CERC) order that seems to be negative from 2014-15 onwards but we cannot take a linear negative view on the stock and further downside movement on the stock is unlikely. Currently stock is underpriced. Investors can bet on it for a longer horizon," said Vivek Gupta, director research at CapitalVia Global Research.

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

Python_Labs from sg


Telegram Python_Labs🐍
FROM USA