Profiling

Top 23 Profiling Open-Source Projects

  • py-spy

    Sampling profiler for Python programs

  • Project mention: Minha jornada de otimização de uma aplicação django | dev.to | 2024-03-13
  • 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)

  • 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
  • systeminformer

    A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware. Brought to you by Winsider Seminars & Solutions, Inc. @ http://www.windows-internals.com

  • Project mention: System Informer | /r/ITProTuesday | 2023-09-03

    System Informer is a versatile system management tool designed to seamlessly monitor and analyze system resources, troubleshoot software issues, and identify potential malware threats. Offers system activity overviews, intuitive graphs, real-time statistics, active network connection monitoring, detailed disk access information, intricate stack trace analysis, and much more. evily2k describes it "like process explorer on steroids. Allows me to kill process that task manager would say access denied."

  • pyroscope

    Continuous Profiling Platform. Debug performance issues down to a single line of code

  • Project mention: Grafana Pyroscope v1.0.0 Release | news.ycombinator.com | 2023-08-29
  • tracy

    Frame profiler

  • Project mention: Tracy: A real time frame and sampling profiler for games and other applications | news.ycombinator.com | 2024-05-12
  • clockwork

    Clockwork - php dev tools in your browser - server-side component

  • Project mention: Advanced Database Query Monitoring in Laravel | dev.to | 2024-05-06

    Clockwork: Clockwork is a powerful debugging and profiling tool for PHP developers. It integrates seamlessly with Laravel and provides detailed insight into the performance of your application, including database queries, HTTP requests, performance metrics, and more. With its intuitive interface and extensive feature set, Clockwork is a valuable tool for optimizing your Laravel applications.

  • viztracer

    VizTracer is a low-overhead logging/debugging/profiling tool that can trace and visualize your python code execution.

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

    * https://github.com/gaogaotiantian/viztracer get a timeline of execution vs call-stack (great to discover what's happening deep inside pandas)

  • SaaSHub

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

    SaaSHub logo
  • flamegraph

    Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)

  • Project mention: Rust Tooling: 8 tools that will increase your productivity | dev.to | 2024-02-15

    You can install cargo-flamegraph with cargo install flamegraph. There are some underlying requirements to be able to use cargo-flamegraph; you will want to take a look at the repo here to make sure you have the right dependencies.

  • 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.

  • parca

    Continuous profiling for analysis of CPU and memory usage, down to the line number and throughout time. Saving infrastructure cost, improving performance, and increasing reliability.

  • Project mention: Seeing what a Go process does (like `set -x`) | /r/golang | 2023-12-06
  • go-recipes

    🦩 Tools for Go projects

  • Project mention: 2023 update to go-recipes collection | /r/golang | 2023-12-11
  • go-profiler-notes

    felixge's notes on the various go profiling methods that are available.

  • gprof2dot

    Converts profiling output to a dot graph.

  • fgprof

    🚀 fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together.

  • Project mention: Fgprof – The Full Go Profiler | news.ycombinator.com | 2024-03-05
  • datadog-agent

    Main repository for Datadog Agent

  • Project mention: How to create a link between two spans in OpenTelemetry | dev.to | 2024-04-19
  • MTuner

    MTuner is a C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms

  • Project mention: MTuner: C/C memory profiler and memory leak finder | /r/hypeurls | 2023-06-25
  • dynamorio

    Dynamic Instrumentation Tool Platform

  • Project mention: I feel like I'm stuck | /r/C_Programming | 2023-05-23

    You might ask what Job or what project. The answer depends on what you want to learn/do (as mentioned it codependent). If you want to know how the execution of a Programm happens in detail and how it can be manipulated during runtime you can dive into DynamoRIO (https://github.com/DynamoRIO/dynamorio). There, you can also learn a lot about instruction set architectures.

  • phoronix-test-suite

    The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.

  • Project mention: FreeBSD has a(nother) new C compiler: Intel oneAPI DPC++/C++ | news.ycombinator.com | 2024-03-07

    I think they do a lot of good stuff, like LTO and PGO.

    But in benchmarks you sometimes see like a 4x speedup compared to ubuntu, which is obviously not due to superior compilers.

    For example:

    https://github.com/phoronix-test-suite/phoronix-test-suite/i...

  • palanteer

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

  • Ruby Tests Profiling Toolbox

    Ruby Tests Profiling Toolbox

  • Project mention: A collection of different tools to analyze your Ruby test suite performance | news.ycombinator.com | 2024-05-21
  • likwid

    Performance monitoring and benchmarking suite

  • MTHawkeye

    Profiling / Debugging assist tools for iOS. (Memory Leak, OOM, ANR, Hard Stalling, Network, OpenGL, Time Profile ...)

  • 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).

Profiling related posts

  • A collection of different tools to analyze your Ruby test suite performance

    1 project | news.ycombinator.com | 21 May 2024
  • Show HN: React Geiger – performance profiling using sound

    5 projects | news.ycombinator.com | 9 Mar 2024
  • Fgprof – The Full Go Profiler

    1 project | news.ycombinator.com | 5 Mar 2024
  • Memray – A Memory Profiler for Python

    10 projects | news.ycombinator.com | 10 Feb 2024
  • Seeing what a Go process does (like `set -x`)

    1 project | /r/golang | 6 Dec 2023
  • Show HN: I developed the most user-friendly Python profiling tool available

    1 project | news.ycombinator.com | 29 Oct 2023
  • Need help making sense of these benchmark results

    1 project | /r/rust | 17 Oct 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 22 May 2024
    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. Learn more →

Index

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

Project Stars
1 py-spy 11,913
2 scalene 11,240
3 systeminformer 10,393
4 pyroscope 9,503
5 tracy 7,916
6 clockwork 5,514
7 viztracer 4,441
8 flamegraph 4,337
9 hotspot 3,889
10 bytehound 3,871
11 parca 3,868
12 go-recipes 3,837
13 go-profiler-notes 3,492
14 gprof2dot 3,114
15 fgprof 2,774
16 datadog-agent 2,666
17 MTuner 2,562
18 dynamorio 2,537
19 phoronix-test-suite 2,320
20 palanteer 2,044
21 Ruby Tests Profiling Toolbox 1,808
22 likwid 1,567
23 MTHawkeye 1,470

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