模組 ngx_google_perftools_module

範例設定
指令
     google_perftools_profiles

ngx_google_perftools_module 模組 (0.6.29) 允許使用 Google Performance Tools 來分析 nginx 工作進程。此模組適用於 nginx 開發人員。

此模組預設不會建置,應使用 --with-google_perftools_module 組態參數啟用。

此模組需要 gperftools 函式庫。

範例設定

google_perftools_profiles /path/to/profile;

效能分析檔案將儲存為 /path/to/profile.<worker_pid>

指令

語法 google_perftools_profiles 檔案;
預設值
上下文 main

設定一個檔案名稱,用於保存 nginx 工作進程的效能分析資訊。工作進程的 ID 始終是檔案名稱的一部分,並在檔案名稱的末尾(在點號之後)附加。