Mercurial > hg > nginx-site
comparison xml/ru/docs/ngx_google_perftools_module.xml @ 1851:9463f1412255
Documented ngx_google_perftools_module.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 05 Dec 2016 21:01:46 +0300 |
parents | |
children | 68a4e583a7e4 |
comparison
equal
deleted
inserted
replaced
1850:8eae6bc1ea22 | 1851:9463f1412255 |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <!-- | |
4 Copyright (C) Nginx, Inc. | |
5 --> | |
6 | |
7 <!DOCTYPE module SYSTEM "../../../dtd/module.dtd"> | |
8 | |
9 <module name="Модуль ngx_google_perftools_module" | |
10 link="/ru/docs/ngx_google_perftools_module.html" | |
11 lang="ru" | |
12 rev="1"> | |
13 | |
14 <section id="summary"> | |
15 | |
16 <para> | |
17 Модуль <literal>ngx_google_perftoos_module</literal> (0.6.29) включает | |
18 поддержку профилирования рабочих процессов nginx при помощи | |
19 <link url="https://github.com/gperftools/gperftools">Google Performance Tools</link>. | |
20 Модуль предназначен для разработчиков nginx. | |
21 </para> | |
22 | |
23 <para> | |
24 По умолчанию этот модуль не собирается, его сборку необходимо | |
25 разрешить с помощью конфигурационного параметра | |
26 <literal>--with-google_perftools_module</literal>. | |
27 <note> | |
28 Для сборки и работы этого модуля нужна библиотека | |
29 <link url="https://github.com/gperftools/gperftools">gperftools</link>. | |
30 </note> | |
31 </para> | |
32 | |
33 </section> | |
34 | |
35 | |
36 <section id="example" name="Пример конфигурации"> | |
37 | |
38 <para> | |
39 <example> | |
40 google_perftools_profiles /path/to/profile; | |
41 </example> | |
42 Профили будут сохраняться как | |
43 <literal>/path/to/profile.<worker_pid></literal>. | |
44 </para> | |
45 | |
46 </section> | |
47 | |
48 | |
49 <section id="directives" name="Директивы"> | |
50 | |
51 <directive name="google_perftools_profiles"> | |
52 <syntax><value>файл</value></syntax> | |
53 <default/> | |
54 <context>main</context> | |
55 | |
56 <para> | |
57 Задаёт имя файла, который хранит информацию о профилировании | |
58 рабочего процесса nginx. | |
59 Идентификатор рабочего процесса всегда является частью имени файла | |
60 и прибавляется в конце имени после точки. | |
61 </para> | |
62 | |
63 </directive> | |
64 | |
65 </section> | |
66 | |
67 </module> |