RSS feed for this section

Archive | Python

Continuous CPU Profiling for Python Applications

There are multiple reasons a program will consume more CPU resources than excepted. In case of high computational complexity of an algorithm, the amount of data it operates on will drive the CPU usage. For I/O intensive programs, data processing may be the bottleneck. Garbage collection activity is another usual suspect. To optimize or troubleshoot […]

Read More Comments Off on Continuous CPU Profiling for Python Applications

Detecting and Locating Memory Leaks in Production Python Applications

A reference to an object, if not properly managed, may be left assigned even if unused. This usually happens on an application logic level, but can also be an issue inside of an imported package. If memory leak appears in production environment, it is very hard to detect and fix it in development or staging […]

Read More Comments Off on Detecting and Locating Memory Leaks in Production Python Applications