The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 Profiling Open-Source Projects
-
-
scalene
Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
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
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."
-
-
Project mention: Tracy: Real-time nanosecond resolution frame profiler | news.ycombinator.com | 2024-03-22
-
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)
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.
-
I've found bytehound helpful for tracking memory leaks: https://github.com/koute/bytehound
-
-
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.
-
-
-
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: 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
-
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-07I 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...
-
-
gem "test-prof" - https://github.com/test-prof/test-prof | Toolkit for inspecting and optimising your test-suite, a must-have.
-
-
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
Profiling related posts
- Show HN: React Geiger – performance profiling using sound
- Fgprof – The Full Go Profiler
- Memray – A Memory Profiler for Python
- Seeing what a Go process does (like `set -x`)
- Show HN: I developed the most user-friendly Python profiling tool available
- Need help making sense of these benchmark results
- Flameshow: A Terminal Flamegraph Viewer
-
A note from our sponsor - WorkOS
workos.com | 18 Apr 2024
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 |