Easy Profiler
: Lightweight cross-platform profiler library for c++
github : https://github.com/yse/easy_profiler
Ubuntu 18.04 환경 빌드
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE="Release" ..
$ make
# easy profiler
find_package(easy_profiler REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR}/Thirdparty/easy_profiler/install/lib/cmake/easy_profiler)
message(STATUS "easy-profiler found : ${easy_profiler_FOUND}")
target_link_libraries(easy_profiler)
EASY_PROFILER_ENABLE; # profiler enable
EASY_MAIN_THREAD; # declare main thread
EASY_BLOCK("Main loop", profiler::colors::Blue100); # make block with selected color
EASY_END_BLOCK # end block