]> git.proxmox.com Git - ceph.git/blame - ceph/src/perfglue/CMakeLists.txt
import quincy beta 17.1.0
[ceph.git] / ceph / src / perfglue / CMakeLists.txt
CommitLineData
9f95a23c 1if(ALLOCATOR STREQUAL "tcmalloc" AND NOT WITH_SEASTAR)
11fdf7f2
TL
2 add_library(heap_profiler STATIC
3 heap_profiler.cc)
4 target_link_libraries(heap_profiler
5 gperftools::tcmalloc)
6else()
7 add_library(heap_profiler STATIC
8 disabled_heap_profiler.cc)
9endif()
10
11option(WITH_PROFILER "build extra profiler binaries" OFF)
12
13if(WITH_PROFILER)
20effc67 14 find_package(gperftools 2.6.2 REQUIRED profiler)
11fdf7f2
TL
15 add_library(cpu_profiler STATIC
16 cpu_profiler.cc)
17 target_link_libraries(cpu_profiler
18 gperftools::profiler)
19else()
20 add_library(cpu_profiler STATIC
21 disabled_stubs.cc)
22endif()