Implemented gperftools support

it allows you to profile cpu/memory under unix systems
This commit is contained in:
Yehonal
2017-03-11 02:49:48 +01:00
parent 693dc56bf1
commit b522a0cb72
5 changed files with 67 additions and 0 deletions

View File

@@ -65,6 +65,15 @@ else()
message("* Use coreside debug : No (default)")
endif()
if ( UNIX )
if( WITH_PERFTOOLS )
message("* Use unix gperftools : Yes")
add_definitions(-DPERF_TOOLS)
else()
message("* Use unix gperftools : No (default)")
endif()
endif( UNIX )
if( WIN32 )
if( USE_MYSQL_SOURCES )
message("* Use MySQL sourcetree : Yes (default)")

View File

@@ -174,6 +174,7 @@ target_link_libraries(worldserver
g3dlib
gsoap
Detour
${GPERFTOOLS_LIBRARIES}
${JEMALLOC_LIBRARY}
${READLINE_LIBRARY}
${TERMCAP_LIBRARY}