mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
fix a comment and a style fix
This commit is contained in:
parent
aed1ac1e68
commit
b45498c3de
@ -8,7 +8,7 @@
|
|||||||
#include <ngx_core.h>
|
#include <ngx_core.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* declare Profiler here interface because
|
* declare Profiler interface here because
|
||||||
* <google/profiler.h> is C++ header file
|
* <google/profiler.h> is C++ header file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -101,7 +101,6 @@ ngx_google_perftools_worker(ngx_cycle_t *cycle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getenv("CPUPROFILE")) {
|
if (getenv("CPUPROFILE")) {
|
||||||
|
|
||||||
/* disable inherited Profiler enabled in master process */
|
/* disable inherited Profiler enabled in master process */
|
||||||
ProfilerStop();
|
ProfilerStop();
|
||||||
}
|
}
|
||||||
@ -109,7 +108,6 @@ ngx_google_perftools_worker(ngx_cycle_t *cycle)
|
|||||||
ngx_sprintf(profile, "%V.%d%Z", &gptcf->profiles, ngx_pid);
|
ngx_sprintf(profile, "%V.%d%Z", &gptcf->profiles, ngx_pid);
|
||||||
|
|
||||||
if (ProfilerStart(profile)) {
|
if (ProfilerStart(profile)) {
|
||||||
|
|
||||||
/* start ITIMER_PROF timer */
|
/* start ITIMER_PROF timer */
|
||||||
ProfilerRegisterThread();
|
ProfilerRegisterThread();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user