[sr-dev] git:kamailio_3.0: Makefile.defs: option to enable fast malloc statistics

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 15 22:26:08 CET 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 67f65488165f67ebacfb09f43e52cf09afdd79d4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=67f65488165f67ebacfb09f43e52cf09afdd79d4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Jan 15 22:23:52 2010 +0100

Makefile.defs: option to enable fast malloc statistics

- FMSTATS=1 will enable MALLOC_STATS
- on by default with kamailio flavor (backward compatibility with 1.5)

---

 Makefile.defs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Makefile.defs b/Makefile.defs
index 42976e0..02e40b8 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -133,6 +133,10 @@ else ifeq ($(FLAVOUR),kamailio)
 # main binary name
 MAIN_NAME=kamailio
 CFG_NAME=kamailio
+# kamailio statistics on
+KMSTATS ?= 1
+# fast malloc statistics on
+FMSTATS ?= 1
 else # default:
 # main binary name
 MAIN_NAME=sip-router
@@ -648,10 +652,12 @@ endif
 ifeq ($(TLS_HOOKS), 1)
 	C_DEFS+= -DUSE_TLS -DTLS_HOOKS
 endif
-KMSTATS ?= 1
 ifeq ($(KMSTATS), 1)
 	C_DEFS+= -DSTATISTICS
 endif
+ifeq ($(FMSTATS), 1)
+	C_DEFS+= -DMALLOC_STATS
+endif
 
 ifneq ($(STUN),)
 	C_DEFS+= -DUSE_STUN




More information about the sr-dev mailing list