ngx_google_perftools_module 모듈
ngx_google_perftools_module 모듈(0.6.29)은 Google Performance Tools를 사용해 nginx 워커 프로세스의 프로파일링을 활성화해요. 이 모듈은 nginx 개발자를 위한 것이에요.
이 모듈은 기본적으로 빌드되지 않으므로, --with-google_perftools_module 구성 매개변수로 활성화해야 해요.
이 모듈은 gperftools 라이브러리가 필요해요.
출처: 문서
본문
예시 구성 (Example Configuration)
google_perftools_profiles /path/to/profile;
프로파일은 /path/to/profile.<worker_pid>로 저장돼요.
지시어 (Directives)
| Syntax: | google_perftools_profiles file; |
|---|---|
| Default: | — |
| Context: | main |
nginx 워커 프로세스의 프로파일링 정보를 담는 파일 이름을 설정해요. 워커 프로세스의 ID는 항상 파일 이름의 일부이며, 파일 이름 끝에 점 뒤에 붙어요.