On this page
Module ngx_google_perftools_module
ngx_google_perftools_module
模块(0.6.29)启用使用Google Performance Tools对 nginx worker 进程进行性能分析。该模块适用于 Nginx 开发人员。
默认情况下未构建此模块,应使用--with-google_perftools_module
配置参数启用它。
Note
此模块需要gperftools库。
Example Configuration
google_perftools_profiles /path/to/profile;
Profile 将存储为/path/to/profile.<worker_pid>
。
Directives
Syntax: | google_perftools_profiles file; |
Default: | — |
Context: | main |
设置一个文件名,该文件名保留 nginx worker 进程的分析信息。辅助进程的 ID 始终是文件名的一部分,并附加在文件名的末尾,点号后。