Bladeren bron

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)
Daniel-Constantin Mierla 15 jaren geleden
bovenliggende
commit
67f6548816
1 gewijzigde bestanden met toevoegingen van 7 en 1 verwijderingen
  1. 7 1
      Makefile.defs

+ 7 - 1
Makefile.defs

@@ -133,6 +133,10 @@ else ifeq ($(FLAVOUR),kamailio)
 # main binary name
 # main binary name
 MAIN_NAME=kamailio
 MAIN_NAME=kamailio
 CFG_NAME=kamailio
 CFG_NAME=kamailio
+# kamailio statistics on
+KMSTATS ?= 1
+# fast malloc statistics on
+FMSTATS ?= 1
 else # default:
 else # default:
 # main binary name
 # main binary name
 MAIN_NAME=sip-router
 MAIN_NAME=sip-router
@@ -648,10 +652,12 @@ endif
 ifeq ($(TLS_HOOKS), 1)
 ifeq ($(TLS_HOOKS), 1)
 	C_DEFS+= -DUSE_TLS -DTLS_HOOKS
 	C_DEFS+= -DUSE_TLS -DTLS_HOOKS
 endif
 endif
-KMSTATS ?= 1
 ifeq ($(KMSTATS), 1)
 ifeq ($(KMSTATS), 1)
 	C_DEFS+= -DSTATISTICS
 	C_DEFS+= -DSTATISTICS
 endif
 endif
+ifeq ($(FMSTATS), 1)
+	C_DEFS+= -DMALLOC_STATS
+endif
 
 
 ifneq ($(STUN),)
 ifneq ($(STUN),)
 	C_DEFS+= -DUSE_STUN
 	C_DEFS+= -DUSE_STUN