feature: debug plugin support output per session stat

This commit is contained in:
luwenpeng
2024-08-13 15:23:48 +08:00
parent 03468d55be
commit d0abc8817b
6 changed files with 117 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
# build libdebug_plugin.so
add_library(debug_plugin SHARED debug_plugin.cpp)
# Note: The debug plugin here uses stellar_core instead of stellar_devel, in order to output more session/packet information for development debugging.
target_link_libraries(debug_plugin stellar_core toml)
target_link_libraries(debug_plugin stellar_devel hexdump session_manager packet)
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/)
set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")