fix a comment and a style fix
Igor Sysoev
12 years ago
7 | 7 | #include <ngx_core.h> |
8 | 8 | |
9 | 9 | /* |
10 | * declare Profiler here interface because | |
10 | * declare Profiler interface here because | |
11 | 11 | * <google/profiler.h> is C++ header file |
12 | 12 | */ |
13 | 13 | |
100 | 100 | } |
101 | 101 | |
102 | 102 | if (getenv("CPUPROFILE")) { |
103 | ||
104 | 103 | /* disable inherited Profiler enabled in master process */ |
105 | 104 | ProfilerStop(); |
106 | 105 | } |
108 | 107 | ngx_sprintf(profile, "%V.%d%Z", &gptcf->profiles, ngx_pid); |
109 | 108 | |
110 | 109 | if (ProfilerStart(profile)) { |
111 | ||
112 | 110 | /* start ITIMER_PROF timer */ |
113 | 111 | ProfilerRegisterThread(); |
114 | 112 |