Added support for building with prof. (#1)

This commit is contained in:
Vincent Tsao 2025-04-25 16:22:10 -07:00 committed by Connor McEntee
parent 8949bbe68a
commit 48e68dfc84
9 changed files with 191 additions and 56 deletions

View file

@ -322,11 +322,14 @@ configure_header(
define_macro_if("JEMALLOC_STATS", "//settings/flags:stats") |
# JEMALLOC_EXPERIMENTAL_SMALLOCX_API: Configurable flag
define_macro_if("JEMALLOC_EXPERIMENTAL_SMALLOCX_API", "//settings/flags:experimental_smallocx_api") |
# JEMALLOC_PROF and related: Assume off by default, not critical for core functionality
undefine_macro("JEMALLOC_PROF_LIBUNWIND") |
undefine_macro("JEMALLOC_PROF_LIBGCC") |
undefine_macro("JEMALLOC_PROF_GCC") |
undefine_macro("JEMALLOC_PROF") |
# JEMALLOC_PROF_LIBGCC: Configurable flag
define_macro_if("JEMALLOC_PROF_LIBGCC", "//settings/flags:prof_libgcc") |
# JEMALLOC_PROF_GCC: Configurable flag
define_macro_if("JEMALLOC_PROF_GCC", "//settings/flags:prof_gcc") |
# JEMALLOC_PROF_LIBUNWIND: Configurable flag
define_macro_if("JEMALLOC_PROF_LIBUNWIND", "//settings/flags:prof_libunwind") |
# JEMALLOC_PROF: Configurable flag
define_macro_if("JEMALLOC_PROF", "//settings/flags:prof") |
# JEMALLOC_DSS: sbrk(2) deprecated on macOS, disable
define_macro_if_any(
"JEMALLOC_DSS",