summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-08-22 00:00:44 +0800
committeryangwei <[email protected]>2023-08-22 00:21:58 +0800
commit5364913818e8ad02b863d34102442202fb56c7b5 (patch)
tree65cbdd6926c236187eff7f3497afcf96930c31fb /benchmark
parentdfe35c09413a0ada869d68f839b63e1eccf04d4e (diff)
✨ feat(signal handle): SIGUSR1触发jemallc的arena.purge
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/example/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/example/CMakeLists.txt b/benchmark/example/CMakeLists.txt
index a72f9e4..b5c953f 100644
--- a/benchmark/example/CMakeLists.txt
+++ b/benchmark/example/CMakeLists.txt
@@ -15,9 +15,15 @@ add_definitions(-std=c++11)
add_executable(test_cjson_compare test_cjson_compare.cpp)
target_link_libraries(test_cjson_compare sapp_benchmark)
+if(MEM_POOL STREQUAL "JEMALLOC_STATIC")
+ target_link_libraries(test_cjson_compare libjemalloc-static)
+endif()
add_executable(test_sapp_benchmark test_sapp_benchmark.cpp)
target_link_libraries(test_sapp_benchmark sapp_benchmark)
+if(MEM_POOL STREQUAL "JEMALLOC_STATIC")
+ target_link_libraries(test_sapp_benchmark libjemalloc-static)
+endif()
add_library(test_benchmark_plug SHARED test_plug.cpp)
target_link_libraries(test_benchmark_plug sapp_benchmark)