dev-libs/jemalloc: Add USE flag prof
authorHan Han <hanhanzhiyeqianke@gmail.com>
Sat, 27 Jul 2019 14:34:06 +0000 (22:34 +0800)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 7 Aug 2019 20:25:53 +0000 (22:25 +0200)
Add USE flag prof to enable or disable allocation profiling.

Signed-off-by: Han Han <hanhanzhiyeqianke@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12556
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
dev-libs/jemalloc/jemalloc-5.0.1.ebuild
dev-libs/jemalloc/jemalloc-5.1.0.ebuild
dev-libs/jemalloc/jemalloc-5.2.0.ebuild
dev-libs/jemalloc/metadata.xml

index f5ad09f06a68896ccf14c129e5db0223b04904ce..ddad51b8e619d30acd25d8984869481af708a2ff 100644 (file)
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.b
 LICENSE="BSD"
 SLOT="0/2"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-IUSE="debug hardened +hugepages lazy-lock static-libs stats xmalloc"
+IUSE="debug hardened +hugepages lazy-lock prof static-libs stats xmalloc"
 HTML_DOCS=( doc/jemalloc.html )
 PATCHES=( "${FILESDIR}/${PN}-5.0.1-strip-optimization.patch"
        "${FILESDIR}/${PN}-4.5.0-fix_html_install.patch"
@@ -40,6 +40,7 @@ multilib_src_configure() {
                $(use_enable debug) \
                $(use_enable lazy-lock) \
                $(use_enable hugepages thp) \
+               $(use_enable prof) \
                $(use_enable stats) \
                $(use_enable xmalloc) \
                "${myconf[@]}"
index 7eda36ea909c9cb337c0fd7d5433ed1e27c2757a..3a7b8d7c3def45d710f5d00ffe577a437ca805a7 100644 (file)
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.b
 LICENSE="BSD"
 SLOT="0/2"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-IUSE="debug hardened lazy-lock static-libs stats xmalloc"
+IUSE="debug hardened lazy-lock prof static-libs stats xmalloc"
 HTML_DOCS=( doc/jemalloc.html )
 PATCHES=( "${FILESDIR}/${PN}-5.0.1-strip-optimization.patch"
        "${FILESDIR}/${PN}-4.5.0-fix_html_install.patch"
@@ -39,6 +39,7 @@ multilib_src_configure() {
        econf  \
                $(use_enable debug) \
                $(use_enable lazy-lock) \
+               $(use_enable prof) \
                $(use_enable stats) \
                $(use_enable xmalloc) \
                "${myconf[@]}"
index 16ced36e7579d8783f50c6f9043d817d4484a261..3e82a451db07ecc7ea552d2677ffb2a45752b3de 100644 (file)
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.b
 LICENSE="BSD"
 SLOT="0/2"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-IUSE="debug hardened lazy-lock static-libs stats xmalloc"
+IUSE="debug hardened lazy-lock prof static-libs stats xmalloc"
 HTML_DOCS=( doc/jemalloc.html )
 PATCHES=( "${FILESDIR}/${PN}-5.2.0-gentoo-fixups.patch" )
 
@@ -38,6 +38,7 @@ multilib_src_configure() {
        econf  \
                $(use_enable debug) \
                $(use_enable lazy-lock) \
+               $(use_enable prof) \
                $(use_enable stats) \
                $(use_enable xmalloc) \
                "${myconf[@]}"
index 848a0a7987dd6e90f7e96914519a43ab8332e37a..14624ae1ff1be9716c70fa69d34273c24aa0b529 100644 (file)
@@ -11,6 +11,7 @@
        <use>
                <flag name="hugepages">Enable transparent huge page support</flag>
                <flag name="lazy-lock">Enable lazy locking (only lock when multi-threaded)</flag>
+               <flag name="prof">Enable allocation profiling</flag>
                <flag name="stats">Enable statistics calculation/reporting</flag>
                <flag name="xmalloc">Add support for xmalloc (abort-on-out-of-memory)</flag>
        </use>