Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/apache2/modperl_gtop.h
$ cat -n /usr/include/apache2/modperl_gtop.h 1 /* Licensed to the Apache Software Foundation (ASF) under one or more 2 * contributor license agreements. See the NOTICE file distributed with 3 * this work for additional information regarding copyright ownership. 4 * The ASF licenses this file to You under the Apache License, Version 2.0 5 * (the "License"); you may not use this file except in compliance with 6 * the License. You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef MODPERL_GTOP_H 18 #define MODPERL_GTOP_H 19 20 #ifndef MP_TRACE 21 # undef MP_USE_GTOP 22 #endif 23 24 #ifdef MP_USE_GTOP 25 /* prevent undef symbol errors (glibtop_error_vr) */ 26 #define __GLIBTOP_ERROR_H__ 27 #include <glibtop.h> 28 #include <glibtop/open.h> 29 #include <glibtop/close.h> 30 #ifndef GTOP_2_5_PLUS 31 #include <glibtop/xmalloc.h> 32 #endif 33 #include <glibtop/parameter.h> 34 #include <glibtop/union.h> 35 #include <glibtop/sysdeps.h> 36 37 #define MP_GTOP_SSS 16 38 39 typedef struct { 40 char size[MP_GTOP_SSS]; 41 char vsize[MP_GTOP_SSS]; 42 char resident[MP_GTOP_SSS]; 43 char share[MP_GTOP_SSS]; 44 char rss[MP_GTOP_SSS]; 45 } modperl_gtop_proc_mem_ss; 46 47 typedef struct { 48 glibtop_union before; 49 glibtop_union after; 50 pid_t pid; 51 modperl_gtop_proc_mem_ss proc_mem_ss; 52 } modperl_gtop_t; 53 54 modperl_gtop_t *modperl_gtop_new(apr_pool_t *p); 55 void modperl_gtop_get_proc_mem_before(modperl_gtop_t *gtop); 56 void modperl_gtop_get_proc_mem_after(modperl_gtop_t *gtop); 57 void modperl_gtop_report_proc_mem(modperl_gtop_t *gtop, 58 char *when, const char *func, char *msg); 59 void modperl_gtop_report_proc_mem_diff(modperl_gtop_t *gtop, const char* func, char *msg); 60 void modperl_gtop_report_proc_mem_before(modperl_gtop_t *gtop, const char* func, char *msg); 61 void modperl_gtop_report_proc_mem_after(modperl_gtop_t *gtop, const char* func, char *msg); 62 63 #define modperl_gtop_do_proc_mem_before(func, msg) \ 64 modperl_gtop_get_proc_mem_before(scfg->gtop); \ 65 modperl_gtop_report_proc_mem_before(scfg->gtop, func, msg) 66 67 #define modperl_gtop_do_proc_mem_after(func, msg) \ 68 modperl_gtop_get_proc_mem_after(scfg->gtop); \ 69 modperl_gtop_report_proc_mem_after(scfg->gtop, func, msg); \ 70 modperl_gtop_report_proc_mem_diff(scfg->gtop, func, msg) 71 72 #endif /* MP_USE_GTOP */ 73 74 #endif /* MODPERL_GTOP_H */ 75 76 /* 77 * Local Variables: 78 * c-basic-offset: 4 79 * indent-tabs-mode: nil 80 * End: 81 */
Welcome to MyWebUniversity on May 19, 2025.
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™