Path: blob/main/xml/en/docs/ngx_google_perftools_module.xml
1 views
<?xml version="1.0"?>12<!--3Copyright (C) Nginx, Inc.4-->56<!DOCTYPE module SYSTEM "../../../dtd/module.dtd">78<module name="Module ngx_google_perftools_module"9link="/en/docs/ngx_google_perftools_module.html"10lang="en"11rev="1">1213<section id="summary">1415<para>16The <literal>ngx_google_perftools_module</literal> module (0.6.29) enables17profiling of nginx worker processes using18<link url="https://github.com/gperftools/gperftools">Google Performance Tools</link>.19The module is intended for nginx developers.20</para>2122<para>23This module is not built by default, it should be enabled with the24<literal>--with-google_perftools_module</literal>25configuration parameter.26<note>27This module requires the28<link url="https://github.com/gperftools/gperftools">gperftools</link> library.29</note>30</para>3132</section>333435<section id="example" name="Example Configuration">3637<para>38<example>39google_perftools_profiles /path/to/profile;40</example>41Profiles will be stored as42<literal>/path/to/profile.<worker_pid></literal>.43</para>4445</section>464748<section id="directives" name="Directives">4950<directive name="google_perftools_profiles">51<syntax><value>file</value></syntax>52<default/>53<context>main</context>5455<para>56Sets a file name that keeps profiling information of57nginx worker process.58The ID of the worker process is always a part of the file name59and is appended to the end of the file name, after a dot.60</para>6162</directive>6364</section>6566</module>676869