mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
fix a comment and a style fix
This commit is contained in:
parent
aed1ac1e68
commit
b45498c3de
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue