Google PerfTools Module#

The module enables profiling of Angie worker processes using Google Performance Tools. The module is intended for Angie developers and allows them to analyze and optimize the performance of the server by providing detailed insights into memory usage, CPU usage, and other performance-related metrics.

When building from the source code, this module isn't built by default; it should be enabled with the --with-google_perftools_module build option.

Important

This module requires the gperftools library.

Configuration Example#

google_perftools_profiles /var/log/angie/perftools;

Profiles will be stored as /var/log/angie/perftools.<worker PID> files.

Directives#

google_perftools_profiles#

Syntax

google_perftools_profiles filename prefix;

Default

Context

main

Sets the prefix of the filename where the profiling information for the worker process Angie will be stored. The worker process ID is appended at the end of the name after a dot, for example: /var/log/angie/perftools.1234.