gperftools
« Back to VersTracker
Description:
Multi-threaded malloc() and performance analysis tools
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: profiling performance c++ malloc debugging
Install: brew install gperftools
About:
Gperftools is a high-performance memory allocator and profiling suite designed for multi-threaded applications. It includes the TCMalloc allocator which reduces lock contention and improves memory efficiency over standard allocators. The package also provides powerful tools like CPU profiler and heap checker to identify performance bottlenecks.
Key Features:
  • TCMalloc: A fast, multi-threaded memory allocator
  • CPU Profiler: Identifies hot spots in code execution
  • Heap Profiler/Checker: Analyzes memory usage and leaks
  • Minimal overhead in production environments
Use Cases:
  • Optimizing memory allocation in high-concurrency C++ applications
  • Profiling CPU usage to find performance bottlenecks
  • Debugging memory leaks in long-running server processes
Alternatives:
  • jemalloc – Another high-performance allocator often used in large scale systems like FreeBSD and Facebook
  • Valgrind – A heavier weight instrumentation framework for dynamic analysis and memory debugging
Version History
Detected Version Rev Change Commit
Sep 10, 2025 6:28pm 0 VERSION_BUMP b61018f9
Sep 26, 2024 10:54am 0 VERSION_BUMP 80595db1
Jan 6, 2024 12:23am 0 VERSION_BUMP 1cca3c04
Jan 5, 2024 11:44pm 0 VERSION_BUMP 2056a383
Jan 3, 2024 9:07pm 0 VERSION_BUMP 7f9d7bc2
Jan 3, 2024 12:00pm 0 VERSION_BUMP d25e0c0e
Sep 12, 2023 8:35am 0 VERSION_BUMP 36c575ab
Aug 15, 2023 1:18pm 0 VERSION_BUMP c995b50d
Aug 15, 2023 6:44am 0 VERSION_BUMP 604ce37f
Mar 18, 2023 3:36am 0 VERSION_BUMP 6f4395d3