Skip to content

Commit

Permalink
devel/google-perftools: Add PROFILER options
Browse files Browse the repository at this point in the history
Option for CPU profiler is mostly to isolate situations when
configure fails to enable it, like on armv6, armv7.

Reference: gperftools/gperftools#1355 (comment)
  • Loading branch information
yurivict committed Jul 19, 2022
1 parent edbb37a commit 35bf4d1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
17 changes: 16 additions & 1 deletion devel/google-perftools/Makefile
Expand Up @@ -3,6 +3,7 @@
PORTNAME= google-perftools
DISTVERSIONPREFIX= gperftools-
DISTVERSION= 2.10
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://github.com/gperftools/gperftools/releases/download/gperftools-${PORTVERSION}/
DISTNAME= gperftools-${PORTVERSION}
Expand All @@ -25,11 +26,25 @@ LIBS+= -lexecinfo

DOCSDIR= ${PREFIX}/share/doc/gperftools

OPTIONS_DEFINE= DOCS
OPTIONS_DEFINE= DOCS PROFILER
OPTIONS_SINGLE= PAGESIZE ALIGN
OPTIONS_SINGLE_ALIGN= ALIGN8 ALIGN16
OPTIONS_SINGLE_PAGESIZE= PAGE8K PAGE32K PAGE64K
OPTIONS_DEFAULT= PAGE8K ALIGN16
OPTIONS_DEFAULT_amd64= PROFILER
OPTIONS_DEFINE_aarch64= PROFILER
OPTIONS_DEFINE_amd64= PROFILER
OPTIONS_DEFINE_armv6= # PROFILER is disabled: WARNING: Could not find the PC. Will not try to compile libprofiler.
OPTIONS_DEFINE_armv7= # PROFILER is disabled: WARNING: Could not find the PC. Will not try to compile libprofiler.
OPTIONS_DEFINE_i386= PROFILER
OPTIONS_DEFINE_powerpc= PROFILER
OPTIONS_DEFINE_powerpc64= PROFILER
OPTIONS_DEFINE_powerpc64le= PROFILER
OPTIONS_DEFINE_riscv64= PROFILER
OPTIONS_SUB= yes

PROFILER_DESC= Enable CPU profiler
PROFILER_CONFIGURE_ENABLE= cpu-profiler

ALIGN_DESC= The tcmalloc allocation alignment
ALIGN8_DESC= 8 bytes allocation alignment
Expand Down
18 changes: 9 additions & 9 deletions devel/google-perftools/pkg-plist
Expand Up @@ -16,21 +16,21 @@ include/gperftools/malloc_extension_c.h
include/gperftools/malloc_hook.h
include/gperftools/malloc_hook_c.h
include/gperftools/nallocx.h
include/gperftools/profiler.h
%%PROFILER%%include/gperftools/profiler.h
include/gperftools/stacktrace.h
include/gperftools/tcmalloc.h
lib/libprofiler.a
lib/libprofiler.so
lib/libprofiler.so.0
lib/libprofiler.so.0.5.5
%%PROFILER%%lib/libprofiler.a
%%PROFILER%%lib/libprofiler.so
%%PROFILER%%lib/libprofiler.so.0
%%PROFILER%%lib/libprofiler.so.0.5.5
lib/libtcmalloc.a
lib/libtcmalloc.so
lib/libtcmalloc.so.4
lib/libtcmalloc.so.4.5.10
lib/libtcmalloc_and_profiler.a
lib/libtcmalloc_and_profiler.so
lib/libtcmalloc_and_profiler.so.4
lib/libtcmalloc_and_profiler.so.4.6.5
%%PROFILER%%lib/libtcmalloc_and_profiler.a
%%PROFILER%%lib/libtcmalloc_and_profiler.so
%%PROFILER%%lib/libtcmalloc_and_profiler.so.4
%%PROFILER%%lib/libtcmalloc_and_profiler.so.4.6.5
lib/libtcmalloc_debug.a
lib/libtcmalloc_debug.so
lib/libtcmalloc_debug.so.4
Expand Down

0 comments on commit 35bf4d1

Please sign in to comment.