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: |

Traders also expressed uncertainty about the situation with China Evergrande, as the indebted property company has not provided clarification about a key interest payment.In economic news, the Commerce Department reported an unexpected increase in U.S. new home sales in August.Crude oil prices climbed Friday and front-month WTI oil futures contracts saw gains for a fifth straight week amid tighter supplies. West Texas Intermediate Crude oil futures for November rose $0.68 or 0.9 percent at 73.98 a barrel. WTI Crude futures gained 2.8 percent for the week.

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

Python_Labs from ru


Telegram Python_Labs🐍
FROM USA