fix a comment and a style fix

This commit is contained in:
Igor Sysoev 2010-03-26 11:27:32 +00:00
parent aed1ac1e68
commit b45498c3de

View File

@ -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();