feat add tracy profiler
Some checks failed
cpp-template / build (Debug, aarch64-linux-gnu) (push) Failing after 27s
cpp-template / build (Release, mipsel-linux-gnu) (push) Failing after 12m45s
cpp-template / build (Release, host.gcc) (push) Failing after 12m52s
cpp-template / build (Release, arm-linux-gnueabihf) (push) Failing after 12m55s
cpp-template / build (Release, aarch64-linux-gnu) (push) Failing after 13m1s
cpp-template / build (Debug, mipsel-linux-gnu) (push) Failing after 13m6s
cpp-template / build (Debug, host.gcc) (push) Failing after 13m11s
cpp-template / build (Debug, arm-linux-gnueabihf) (push) Failing after 13m19s
Some checks failed
cpp-template / build (Debug, aarch64-linux-gnu) (push) Failing after 27s
cpp-template / build (Release, mipsel-linux-gnu) (push) Failing after 12m45s
cpp-template / build (Release, host.gcc) (push) Failing after 12m52s
cpp-template / build (Release, arm-linux-gnueabihf) (push) Failing after 12m55s
cpp-template / build (Release, aarch64-linux-gnu) (push) Failing after 13m1s
cpp-template / build (Debug, mipsel-linux-gnu) (push) Failing after 13m6s
cpp-template / build (Debug, host.gcc) (push) Failing after 13m11s
cpp-template / build (Debug, arm-linux-gnueabihf) (push) Failing after 13m19s
This commit is contained in:
@@ -11,11 +11,10 @@ if(CMAKE_CXX_COMPILER_ID
|
||||
|
||||
endif()
|
||||
|
||||
link_libraries(atomic)
|
||||
option(
|
||||
WITH_MICROPROFILE
|
||||
"with MicroProfile"
|
||||
OFF)
|
||||
# option(
|
||||
# WITH_MICROPROFILE
|
||||
# "with MicroProfile"
|
||||
# ON)
|
||||
option(
|
||||
WITH_EXAMPLES
|
||||
"with examples"
|
||||
@@ -41,17 +40,23 @@ check_cxx_source_compiles(
|
||||
"
|
||||
HAVE_PTHREAD)
|
||||
|
||||
if(NOT
|
||||
CMAKE_SYSTEM_PROCESSOR
|
||||
if(CMAKE_SYSTEM_PROCESSOR
|
||||
MATCHES
|
||||
"mips*")
|
||||
link_libraries(atomic)
|
||||
else()
|
||||
add_subdirectory(third_party/breakpad)
|
||||
endif()
|
||||
add_subdirectory(third_party/tracy)
|
||||
if(WITH_MICROPROFILE)
|
||||
add_subdirectory(third_party/microprofile)
|
||||
set(COMM_LINK_MICROPROFILE ON)
|
||||
endif()
|
||||
CPMAddPackage(
|
||||
NAME tracy
|
||||
URI https://github.com/wolfpld/tracy
|
||||
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/tracy
|
||||
OPTIONS "TRACY_ENABLE ON" "TRACY_ON_DEMAND ON"
|
||||
FORCE)
|
||||
|
||||
CPMAddPackage(
|
||||
NAME oatpp
|
||||
@@ -69,11 +74,8 @@ CPMAddPackage(
|
||||
FORCE)
|
||||
|
||||
if(WITH_EXAMPLES)
|
||||
cc_executable(microprofile_demo SRCS examples/microprofile_demo.cc)
|
||||
cc_executable(
|
||||
tracy_demo
|
||||
SRCS examples/tracy_demo.cc
|
||||
DEPS PRIVATE TracyClient)
|
||||
# cc_executable(microprofile_demo SRCS examples/microprofile_demo.cc)
|
||||
cc_executable(tracy_demo SRCS examples/tracy_demo.cc)
|
||||
endif()
|
||||
|
||||
enable_testing()
|
||||
|
Reference in New Issue
Block a user