diff options
| author | yangwei <[email protected]> | 2023-08-22 00:00:44 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-08-22 00:21:58 +0800 |
| commit | 5364913818e8ad02b863d34102442202fb56c7b5 (patch) | |
| tree | 65cbdd6926c236187eff7f3497afcf96930c31fb /benchmark | |
| parent | dfe35c09413a0ada869d68f839b63e1eccf04d4e (diff) | |
✨ feat(signal handle): SIGUSR1触发jemallc的arena.purge
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/example/CMakeLists.txt | 6 |
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) |
