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

Telegram hopes to raise $1bn with a convertible bond private placement

The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.

For some time, Mr. Durov and a few dozen staffers had no fixed headquarters, but rather traveled the world, setting up shop in one city after another, he told the Journal in 2016. The company now has its operational base in Dubai, though it says it doesn’t keep servers there.Mr. Durov maintains a yearslong friendship from his VK days with actor and tech investor Jared Leto, with whom he shares an ascetic lifestyle that eschews meat and alcohol.

Python_Labs from tr


Telegram Python_Labs🐍
FROM USA