Source: jemalloc
Severity: wishlist
Tags: patch

Jemalloc comes with a handful of very useful allocator
profiling/diagnostic capabilities, that will be extremely useful when
trying to debug some memory leak in a running production application. In
order to do this, it is needed that jemalloc is built with the
--enable-prof configure switch. Note that the profiling capabilities are
disabled by default, so that enabling this does not cause any practical
performance overhead. Users may decide to enable it by using the
MALLOC_CONF variable or the /etc/malloc.conf config file.

I don't think there is any good reason not to enable this by default in
debian. The patch I include will accomplish just that.

Cheers,

Giuseppe

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- a/debian/rules	2014-10-30 11:33:17.126882385 +0100
+++ b/debian/rules	2014-10-30 11:34:49.060995183 +0100
@@ -34,6 +34,9 @@
 %:
 	dh $@ --parallel
 
+override_dh_auto_configure:
+	dh_auto_configure -- --enable-prof
+ 
 override_dh_auto_build:
 	make all doc
 

Reply via email to