Profiler

Open-source projects categorized as Profiler

Top 23 Profiler Open-Source Projects

  • memray

    Memray is a memory profiler for Python

  • Project mention: Memray – A Memory Profiler for Python | news.ycombinator.com | 2024-02-10

    I collected a list of profilers (also memory profilers, also specifically for Python) here: https://github.com/albertz/wiki/blob/master/profiling.md

    Currently I actually need a Python memory profiler, because I want to figure out whether there is some memory leak in my application (PyTorch based training script), and where exactly (in this case, it's not a problem of GPU memory, but CPU memory).

    I tried Scalene (https://github.com/plasma-umass/scalene), which seems to be powerful, but somehow the output it gives me is not useful at all? It doesn't really give me a flamegraph, or a list of the top lines with memory allocations, but instead it gives me a listing of all source code lines, and prints some (very sparse) information on each line. So I need to search through that listing now by hand to find the spots? Maybe I just don't know how to use it properly.

    I tried Memray, but first ran into an issue (https://github.com/bloomberg/memray/issues/212), but after using some workaround, it worked now. I get a flamegraph out, but it doesn't really seem accurate? After a while, there don't seem to be any new memory allocations at all anymore, and I don't quite trust that this is correct.

    There is also Austin (https://github.com/P403n1x87/austin), which I also wanted to try (have not yet).

    Somehow this experience so far was very disappointing.

    (Side node, I debugged some very strange memory allocation behavior of Python before, where all local variables were kept around after an exception, even though I made sure there is no reference anymore to the exception object, to the traceback, etc, and I even called frame.clear() for all frames to really clear it. It turns out, frame.f_locals will create another copy of all the local variables, and the exception object and all the locals in the other frame still stay alive until you access frame.f_locals again. At that point, it will sync the f_locals again with the real (fast) locals, and then it can finally free everything. It was quite annoying to find the source of this problem and to find workarounds for it. https://github.com/python/cpython/issues/113939)

  • py-spy

    Sampling profiler for Python programs

  • Project mention: Minha jornada de otimização de uma aplicação django | dev.to | 2024-03-13
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • scalene

    Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

  • Project mention: Memray – A Memory Profiler for Python | news.ycombinator.com | 2024-02-10

    I collected a list of profilers (also memory profilers, also specifically for Python) here: https://github.com/albertz/wiki/blob/master/profiling.md

    Currently I actually need a Python memory profiler, because I want to figure out whether there is some memory leak in my application (PyTorch based training script), and where exactly (in this case, it's not a problem of GPU memory, but CPU memory).

    I tried Scalene (https://github.com/plasma-umass/scalene), which seems to be powerful, but somehow the output it gives me is not useful at all? It doesn't really give me a flamegraph, or a list of the top lines with memory allocations, but instead it gives me a listing of all source code lines, and prints some (very sparse) information on each line. So I need to search through that listing now by hand to find the spots? Maybe I just don't know how to use it properly.

    I tried Memray, but first ran into an issue (https://github.com/bloomberg/memray/issues/212), but after using some workaround, it worked now. I get a flamegraph out, but it doesn't really seem accurate? After a while, there don't seem to be any new memory allocations at all anymore, and I don't quite trust that this is correct.

    There is also Austin (https://github.com/P403n1x87/austin), which I also wanted to try (have not yet).

    Somehow this experience so far was very disappointing.

    (Side node, I debugged some very strange memory allocation behavior of Python before, where all local variables were kept around after an exception, even though I made sure there is no reference anymore to the exception object, to the traceback, etc, and I even called frame.clear() for all frames to really clear it. It turns out, frame.f_locals will create another copy of all the local variables, and the exception object and all the locals in the other frame still stay alive until you access frame.f_locals again. At that point, it will sync the f_locals again with the real (fast) locals, and then it can finally free everything. It was quite annoying to find the source of this problem and to find workarounds for it. https://github.com/python/cpython/issues/113939)

  • tracy

    Frame profiler

  • Project mention: Tracy: Real-time nanosecond resolution frame profiler | news.ycombinator.com | 2024-03-22
  • pprof

    pprof is a tool for visualization and analysis of profiling data

  • Project mention: Profiling Caddy | news.ycombinator.com | 2024-02-15

    The pprof format is not tied to Go. From my understanding, it's used within Google across multiple languages. The format is defined in the pprof repository[0], and the visualization tool is source-language agnostic. I've seen libraries in numerous languages (e.g. Python, Java) to publish profiles in pprof format. This is an indicator the pprof format has become de-facto. Grafana Pyroscope[1] is a tool that's capable of parsing the pprof format, agnostic to the source programming language, and has instructions for Go, Java, Python, Ruby, node.js, Rust, and .NET.

    My understanding is that you're searching for a combination of the profiles, metrics, and tracing. Caddy supports all 3.

    [0] https://github.com/google/pprof/blob/main/doc/README.md

    [1] https://grafana.com/docs/pyroscope/latest/

    metrics and tracing need to be manually enabled (for now, perhaps)

  • bullet

    help to kill N+1 queries and unused eager loading

  • pyinstrument

    🚴 Call stack profiler for Python. Shows you why your code is slow!

  • Project mention: How to profile an asynchronous FastAPI server | /r/Python | 2023-08-09

    I was wondering if you have any synchronous routes in your app? We have an open issue regarding those and would love some ideas for solutions :)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • memory_profiler

    Monitor Memory usage of Python code

  • Project mention: Ask HN: C/C++ developer wanting to learn efficient Python | news.ycombinator.com | 2024-04-10
  • orbit

    C/C++ Performance Profiler

  • Project mention: Google/orbit – C/C++ Performance Profiler | news.ycombinator.com | 2024-02-11
  • vprof

    Visual profiler for Python

  • hotspot

    The Linux perf GUI for performance analysis.

  • Project mention: Hotspot: A GUI for the Linux perf profiler | /r/C_Programming | 2023-09-12
  • bytehound

    A memory profiler for Linux.

  • Project mention: My Rust program (Well, game) is leaking memory, 4MB/s. | /r/rust | 2023-04-30

    I've found bytehound helpful for tracking memory leaks: https://github.com/koute/bytehound

  • coz

    Coz: Causal Profiling

  • Project mention: Coz: Causal Profiling | news.ycombinator.com | 2024-04-18
  • rack-mini-profiler

    Profiler for your development and production Ruby rack apps.

  • Project mention: RoR Debugbar | news.ycombinator.com | 2024-02-18

    Author of peek here. Honestly, I got burnt out. We stopped using this internally at GitHub which made it difficult to continue working on. Rails was going through its identity crisis with asset pipelines.

    https://github.com/MiniProfiler/rack-mini-profiler gets you most of the way there and comes by default in the Gemfile for new Rails applications.

  • Peek

    Take a peek into your Rails applications. (by peek)

  • Project mention: RoR Debugbar | news.ycombinator.com | 2024-02-18

    There's peek[1], albeit not exactly the same thing

    [1] - https://github.com/peek/peek

  • optick

    C++ Profiler For Games

  • Project mention: What is your favourite profiling tool for C++? | /r/cpp | 2023-06-29

    Does anyone here have experience with Optick: https://github.com/bombomby/optick ? It looks great but I haven't got the chance to try it. Was wondering how it compares to the other tools listed here.

  • MiniProfiler

    A simple but effective mini-profiler for ASP.NET (and Core) websites (by MiniProfiler)

  • Remotery

    Single C file, Realtime CPU/GPU Profiler with Remote Web Viewer

  • AndroidGodEye

    An app performance monitor(APM) , like "Android Studio profiler", you can easily monitor the performance of your app real time in browser

  • easy_profiler

    Lightweight profiler library for c++

  • Project mention: My first game engine | /r/gameenginedevs | 2023-06-16

    You might also consider building some support for tracing and profiling directly into your engine using Tracy or easy_profiler.

  • palanteer

    Visual Python and C++ nanosecond profiler, logger, tests enabler

  • ruby-prof

    A ruby profiler. See https://ruby-prof.github.io for more information.

  • Project mention: Flameshow: A Terminal Flamegraph Viewer | news.ycombinator.com | 2023-09-24
  • php-spx

    A simple & straight-to-the-point PHP profiling extension with its built-in web UI

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Profiler related posts

Index

What are some of the best open-source Profiler projects? This list will help you:

Project Stars
1 memray 12,545
2 py-spy 11,850
3 scalene 11,163
4 tracy 7,814
5 pprof 7,450
6 bullet 6,984
7 pyinstrument 6,105
8 memory_profiler 4,210
9 orbit 4,031
10 vprof 3,948
11 hotspot 3,859
12 bytehound 3,856
13 coz 3,819
14 rack-mini-profiler 3,655
15 Peek 3,181
16 optick 2,859
17 MiniProfiler 2,854
18 Remotery 2,728
19 AndroidGodEye 2,577
20 easy_profiler 2,056
21 palanteer 2,027
22 ruby-prof 1,987
23 php-spx 1,879

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com