]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Prevent extra lines being pulled into xprof_type.h
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Jan 2011 07:31:04 +0000 (00:31 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Jan 2011 07:31:04 +0000 (00:31 -0700)
lib/profiler/Profiler.h
lib/profiler/xprof_type.h
scripts/source-maintenance.sh
src/comm/Loops.h

index 8e57feb2c0d52a83d14bfb7bd61e0114702bc4ee..4b3b0fd64348c920d69fc122ee5602f94685587b 100644 (file)
@@ -13,8 +13,8 @@ extern "C" {
 
 #if !USE_XPROF_STATS
 
-#define PROF_start(ARGS) ((void)0)
-#define PROF_stop(ARGS) ((void)0)
+#define PROF_start(probename) ((void)0)
+#define PROF_stop(probename) ((void)0)
 
 #else /* USE_XPROF_STATS */
 
@@ -51,8 +51,8 @@ extern "C" {
     extern void xprof_stop(xprof_type type, const char *timer);
     extern void xprof_event(void *data);
 
-#define PROF_start(type) xprof_start(XPROF_##type, #type)
-#define PROF_stop(type) xprof_stop(XPROF_##type, #type)
+#define PROF_start(probename) xprof_start(XPROF_##probename, #probename)
+#define PROF_stop(probename) xprof_stop(XPROF_##probename, #probename)
 
 #endif /* USE_XPROF_STATS */
 
index 49dd19b016ac4dfc501c5f0b907ee3528525234c..f3060388084109277a9ade42ddfa3673ee283cfb 100644 (file)
@@ -27,6 +27,7 @@ typedef enum {
     XPROF_StringReset,
     XPROF_aclCheckFast,
     XPROF_aclMatchAclList,
+    XPROF_calloc,
     XPROF_clientSocketRecipient,
     XPROF_commHandleWrite,
     XPROF_comm_accept,
@@ -50,12 +51,17 @@ typedef enum {
     XPROF_file_open,
     XPROF_file_read,
     XPROF_file_write,
+    XPROF_free,
+    XPROF_free_const,
+    XPROF_hash_lookup,
     XPROF_headersEnd,
     XPROF_httpRequestFree,
     XPROF_httpStart,
+    XPROF_malloc,
     XPROF_mem_hdr_write,
     XPROF_parseHttpRequest,
     XPROF_read,
+    XPROF_realloc,
     XPROF_recv,
     XPROF_send,
     XPROF_storeClient_kickReads,
@@ -66,6 +72,10 @@ typedef enum {
     XPROF_storeRelease,
     XPROF_storeWriteComplete,
     XPROF_write,
+    XPROF_xcalloc,
+    XPROF_xcountws,
+    XPROF_xmalloc,
+    XPROF_xrealloc,
     XPROF_LAST
 } xprof_type;
 #endif
index 3acebeb710d543a29c596893d597bbc4f4cd51b6..fea3842ce52b49561861cced18ee8c8b9467280d 100755 (executable)
@@ -121,7 +121,7 @@ echo "/* AUTO-GENERATED FILE */" >>${ROOT}/lib/profiler/list
 echo "#if USE_XPROF_STATS" >>${ROOT}/lib/profiler/list
 echo "typedef enum {" >>${ROOT}/lib/profiler/list
 echo "XPROF_PROF_UNACCOUNTED," >>${ROOT}/lib/profiler/list
-grep -R -h "PROF_start.*" ./* | sed -e 's/ //g; s/PROF_start(/XPROF_/; s/);/,/' | sort -u >>${ROOT}/lib/profiler/list
+grep -R -h "PROF_start.*" ./* | grep -v probename | sed -e 's/ //g; s/PROF_start(/XPROF_/; s/);/,/' | sort -u >>${ROOT}/lib/profiler/list
 echo "  XPROF_LAST } xprof_type;" >>${ROOT}/lib/profiler/list
 echo "#endif" >>${ROOT}/lib/profiler/list
 echo "#endif" >>${ROOT}/lib/profiler/list
index 6d5ec34d93f5349afae1c2b05e3d44f971a78ed4..915abba73b11d9c272cde968d701104fed39e4fd 100644 (file)
@@ -9,7 +9,8 @@
  * Defines are provided short-term for legacy code. These will disappear soon.
  */
 
-namespace Comm {
+namespace Comm
+{
 
 /// Initialize the module on Squid startup
 extern void SelectLoopInit(void);