]> git.proxmox.com Git - ceph.git/blame - ceph/src/perfglue/CMakeLists.txt
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / perfglue / CMakeLists.txt
CommitLineData
11fdf7f2
TL
1if(ALLOCATOR STREQUAL "tcmalloc")
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)
14 find_package(gperftools REQUIRED profiler)
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()