mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52: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>
|
||||
|
||||
/*
|
||||
* declare Profiler here interface because
|
||||
* declare Profiler interface here because
|
||||
* <google/profiler.h> is C++ header file
|
||||
*/
|
||||
|
||||
@ -101,7 +101,6 @@ ngx_google_perftools_worker(ngx_cycle_t *cycle)
|
||||
}
|
||||
|
||||
if (getenv("CPUPROFILE")) {
|
||||
|
||||
/* disable inherited Profiler enabled in master process */
|
||||
ProfilerStop();
|
||||
}
|
||||
@ -109,7 +108,6 @@ ngx_google_perftools_worker(ngx_cycle_t *cycle)
|
||||
ngx_sprintf(profile, "%V.%d%Z", &gptcf->profiles, ngx_pid);
|
||||
|
||||
if (ProfilerStart(profile)) {
|
||||
|
||||
/* start ITIMER_PROF timer */
|
||||
ProfilerRegisterThread();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user