Profiling Python code with memory_profiler

This page summarizes the projects mentioned and recommended in the original post on dev.to

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
  • memory_profiler

    Monitor Memory usage of Python code

    What do you do when your Python program is using too much memory? How do you find the spots in your code with memory allocation, especially in large chunks? It turns out that there is not usually an easy answer to these question, but a number of tools exist that can help you figure out where your code is allocating memory. In this article, I’m going to focus on one of them, memory_profiler.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • line_profiler

    Line-by-line profiling for Python (by pyutils)

    The memory_profiler tool is similar in spirit (and inspired by) the line_profiler tool , which I’ve written about as well. Whereas line_profiler tells you how much time is spent on each line, memory_profiler tells you how much memory is allocated (or freed) by each line. This allows you to see the real impact of each line of code and get a sense where memory usage. While the tool is quite helpful, there’s a few things to know about it to use it effectively. I’ll cover some details in this article.

  • psutil

    Cross-platform lib for process and system monitoring in Python

    It uses the psutil library (or can use tracemalloc or posix) to access process information in a cross platform way, so it works on Windows, Mac, and Linux.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Ask HN: C/C++ developer wanting to learn efficient Python

    4 projects | news.ycombinator.com | 10 Apr 2024
  • Minha jornada de otimização de uma aplicação django

    5 projects | dev.to | 13 Mar 2024
  • Looking for a way to remote in to K's of raspberry pi's...

    11 projects | /r/sysadmin | 10 Dec 2023
  • Graphical Python Profiler

    4 projects | news.ycombinator.com | 5 Jul 2023
  • Mixed Vendor Network Monitoring and Management

    4 projects | /r/networking | 29 May 2023