gperftools
valgrind-macos


gperftools | valgrind-macos | |
---|---|---|
4 | 6 | |
8,566 | 1,190 | |
0.6% | 1.2% | |
9.2 | 9.0 | |
1 day ago | 9 days ago | |
C++ | C | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gperftools
-
I find it's not possible to do serious C/C++ coding on latest macOS
For profiling you are right clang has no -pg that works. But there are options, since clang supports PGO the fprofile flags could be what you need. they will generated a profraw file for you. There is also gperf tools which work for more than just linux. https://github.com/gperftools/gperftools
-
Why So Slow? Using Profilers to Pinpoint the Reasons of Performance Degradation
Because we couldn't identify the issue using the results we got from Callgrind, we reached for another profiler, gperftools. It's a sampling profiler and therefor it has a smaller impact on the application's performance in exchange for less accurate call statistics. After filtering out the unimportant parts and visualizing the rest with pprof, it was evident that something strange was happening with the send function. It took only 71 milliseconds with the previous implementation and more than 900 milliseconds with the new implementation of our Bolt server. It was very suspicious, but based on Callgrind, its cost was almost the same as before. We were confused as the two results seemed to conflict with each other.
-
Is there a way I can visualize all the function calls made while running the project(C++) in a graphical way?
gprftools (https://github.com/gperftools/gperftools) can be easily plugged in using LD_PRELOAD and signal, and has nice go implemented visualization tool https://github.com/google/pprof.
-
How do applications request for RAM from the CPU?
Google's tcmalloc
valgrind-macos
-
macOS Sonoma Forced Installs
> There's a nice synergy between using Mac and Linux - many of the same scripts, commands, and concepts work identically.
I switched to a Mac a few months ago from Windows and I kinda hate the small differences with Linux, I like WSL much better. On top of my head,
- No systemd
- No native docker
- No valgrind (there is https://github.com/LouisBrunner/valgrind-macos though)
I basically have to install a Linux VM on Mac just for this, at which point WSL on Windows is a much better tradeoff IMO.
-
I find it's not possible to do serious C/C++ coding on latest macOS
As far as I know there are only two of us contributing to it - Louis Brunner and myself, both very much part time volunteers.
-
Valgrind 3.21 Released
There is ongoing work here https://github.com/LouisBrunner/valgrind-macos (and I have a repo that is based on the same changes, and a bit more up do date upstream here https://github.com/paulfloyd/macos_valgrind). Anyone that can help with this is most welcome!
-
Apple killed XVim
BTW, it seems like there is some work ongoing for working Valgrind in later macOS versions: https://github.com/LouisBrunner/valgrind-macos/issues/19
What are some alternatives?
pprof - pprof is a tool for visualization and analysis of profiling data
oni2 - Native, lightweight modal code editor
massif-visualizer - Visualizer for Valgrind Massif data files
memory-sanitizer-benchmark
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
verrou - floating-point errors checker
tracy - Frame profiler
valgrind-riscv64 - Valgrind with support for the RISCV64/Linux platform.
jemalloc
macos_valgrind - Official Valgrind source merged with Louis Brunner's github repo
gprof2dot - Converts profiling output to a dot graph.
ocreval - Update of the ISRI Analytic Tools for OCR Evaluation with UTF-8 support

