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.

  • 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: Real-time nanosecond resolution frame profiler | news.ycombinator.com | 2024-03-22
  • clockwork

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

    Project mention: Laravel Debugger | /r/PinoyProgrammer | 2023-05-04

    Either Clockwork or Debugbar.

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

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

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

  • 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

  • hotspot

    The Linux perf GUI for performance analysis.

    Project mention: Hotspot: A GUI for the Linux perf profiler | /r/C_Programming | 2023-09-12
  • 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.

    Project mention: Visualizing Pythons process? | /r/learnpython | 2023-05-09

    It also lets you run tools like https://github.com/jrfonseca/gprof2dot on the profiling results to generate comprehensive flowcharts (call graph) for your program.

  • 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: datadog-agent VS robusta - a user suggested alternative | libhunt.com/r/datadog-agent | 2023-05-31
  • 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: Must-have gems for mature Rails | dev.to | 2024-02-02

    gem "test-prof" - https://github.com/test-prof/test-prof | Toolkit for inspecting and optimising your test-suite, a must-have.

  • 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

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). The latest post mention was on 2024-04-10.

Profiling related posts

Index

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

Project Stars
1 py-spy 11,814
2 scalene 11,125
3 systeminformer 10,219
4 pyroscope 9,380
5 tracy 7,718
6 clockwork 5,477
7 viztracer 4,304
8 flamegraph 4,241
9 bytehound 3,848
10 hotspot 3,840
11 parca 3,811
12 go-recipes 3,803
13 go-profiler-notes 3,478
14 gprof2dot 3,087
15 fgprof 2,746
16 datadog-agent 2,627
17 MTuner 2,538
18 dynamorio 2,506
19 phoronix-test-suite 2,295
20 palanteer 2,027
21 Ruby Tests Profiling Toolbox 1,790
22 likwid 1,541
23 MTHawkeye 1,466
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com