#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 */
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 */
XPROF_StringReset,
XPROF_aclCheckFast,
XPROF_aclMatchAclList,
+ XPROF_calloc,
XPROF_clientSocketRecipient,
XPROF_commHandleWrite,
XPROF_comm_accept,
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,
XPROF_storeRelease,
XPROF_storeWriteComplete,
XPROF_write,
+ XPROF_xcalloc,
+ XPROF_xcountws,
+ XPROF_xmalloc,
+ XPROF_xrealloc,
XPROF_LAST
} xprof_type;
#endif
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
* 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);