In MySQL 5.6.6 in the future, GPROF performance testing support is added to the cmake option. For details, see:
Http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html
Enable_gprof enable GPROF (optimized Linux builds only) off 5.6.6
Cmakelists.txt in the code library is excerpted as follows:
OPTION(ENABLE_GCOV "Enable gcov (debug, Linux builds only)" OFF)IF (ENABLE_GCOV AND NOT WIN32 AND NOT APPLE) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage") SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage") SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage -lgcov")ENDIF()OPTION(ENABLE_GPROF "Enable gprof (optimized, Linux builds only)" OFF)IF (ENABLE_GPROF AND NOT WIN32 AND NOT APPLE) SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -pg") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pg") SET(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} -pg")ENDIF()