process

gperftools – memory allocator and performance profiling tools

gperftools, originally known as Google Performance Tools, is a collection of libraries and utilities for analysing the performance of native applications. It incorporates TCMalloc, a memory allocator designed to reduce allocation overhead and contention in multithreaded applications, alongside facilities for investigating CPU and heap usage.

The heap profiler helps developers understand how dynamically allocated memory is distributed throughout an application. By collecting profiles at different stages of execution, developers can investigate increasing memory consumption, identify expensive allocation patterns and assess the effectiveness of memory optimisations. Profiling can be enabled by linking against the appropriate libraries or, where supported, preloading them into an existing application.

This is free and open source software.

Key Features

  • Thread-local allocation caches to reduce contention between threads.
  • Attribute heap allocations to their originating call stacks.
  • Analyse cumulative allocation activity and currently allocated memory.
  • Generate heap profile snapshots at configurable allocation intervals.
  • Compare heap profiles to identify changes in memory consumption.
  • Statistical CPU profiling using periodic sampling.
  • Programmatic control over when CPU and heap profiling starts and stops.
  • Configure profiling behaviour through environment variables.
  • Collect allocator statistics through the MallocExtension interface.
  • Multiple stack unwinding mechanisms.
  • Analyse generated profiles using the separate pprof tool.
  • Reduced-functionality allocator variants for applications not requiring profiling facilities.
  • Cross-platform support – runs on Linux, FreeBSD, macOS, and Windows, with platform-specific limitations.

Website: github.com/gperftools/gperftools
Support:
Developer: gperftools contributors
License: BSD 3-Clause ‘New’ or ‘Revised’ License

gperftools is written in C++. Learn C++ with our recommended free books and free tutorials.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted