RSS feed for this section

Archive | Python

AWS Lambda CPU and Memory Profiling (Python)

Profiling cloud applications Performance profiling is essential for optimizing and fixing application’s resource consumption, response time and failures. A performance issue without an execution profile is like an error without a stack trace. It will lead to a lot of manual work to get to the root cause. Profiling cloud applications and functions such as […]

Read More Comments Off on AWS Lambda CPU and Memory Profiling (Python)

Continuous Performance Profiling

Computational complexity requirements The difference between exponential, linear, logarithmic and constant execution time of a program is critical for various use cases. Even if an algorithm is purposely designed to satisfy a certain complexity class, there are multiple reasons why it might not. An underlying library, OS or even hardware can be the root cause […]

Read More Comments Off on Continuous Performance Profiling

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