diff --git a/.vscode/settings.json b/.vscode/settings.json index 450a06ba..1cd80712 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,11 @@ "cmake.configureOnOpen": true, "cmake.sourceDirectory": [ "${workspaceFolder}/profiler", + "${workspaceFolder}/capture", + "${workspaceFolder}/csvexport", + "${workspaceFolder}/import-chrome", + "${workspaceFolder}/import-fuchsia", + "${workspaceFolder}/update", "${workspaceFolder}", ], "cmake.buildDirectory": "${sourceDirectory}/builddir", diff --git a/capture/CMakeLists.txt b/capture/CMakeLists.txt new file mode 100644 index 00000000..5cdbb592 --- /dev/null +++ b/capture/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.16) + +option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -mcpu=native to the compiler)" OFF) +option(NO_STATISTICS "Disable calculation of statistics" ON) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) + +set(CMAKE_CXX_STANDARD 20) + +project( + tracy-capture + LANGUAGES ASM C CXX + VERSION ${TRACY_VERSION_STRING} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake) + +set(PROGRAM_FILES + src/capture.cpp +) + +add_executable(${PROJECT_NAME} ${PROGRAM_FILES} ${COMMON_FILES} ${SERVER_FILES}) +target_link_libraries(${PROJECT_NAME} PRIVATE TracyServer) diff --git a/csvexport/CMakeLists.txt b/csvexport/CMakeLists.txt new file mode 100644 index 00000000..f04502f3 --- /dev/null +++ b/csvexport/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.16) + +option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -mcpu=native to the compiler)" OFF) +set(NO_STATISTICS OFF) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) + +set(CMAKE_CXX_STANDARD 20) + +project( + tracy-csvexport + LANGUAGES ASM C CXX + VERSION ${TRACY_VERSION_STRING} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake) + +set(PROGRAM_FILES + src/csvexport.cpp +) + +add_executable(${PROJECT_NAME} ${PROGRAM_FILES} ${COMMON_FILES} ${SERVER_FILES}) +target_link_libraries(${PROJECT_NAME} PRIVATE TracyServer) diff --git a/import-chrome/CMakeLists.txt b/import-chrome/CMakeLists.txt new file mode 100644 index 00000000..bff35802 --- /dev/null +++ b/import-chrome/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.16) + +option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -mcpu=native to the compiler)" OFF) +option(NO_STATISTICS "Disable calculation of statistics" ON) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) + +set(CMAKE_CXX_STANDARD 20) + +project( + tracy-import-chrome + LANGUAGES ASM C CXX + VERSION ${TRACY_VERSION_STRING} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake) + +set(PROGRAM_FILES + src/import-chrome.cpp +) + +add_executable(${PROJECT_NAME} ${PROGRAM_FILES} ${COMMON_FILES} ${SERVER_FILES}) +target_link_libraries(${PROJECT_NAME} PRIVATE TracyServer) diff --git a/import-fuchsia/CMakeLists.txt b/import-fuchsia/CMakeLists.txt new file mode 100644 index 00000000..913f1a44 --- /dev/null +++ b/import-fuchsia/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.16) + +option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -mcpu=native to the compiler)" OFF) +option(NO_STATISTICS "Disable calculation of statistics" ON) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) + +set(CMAKE_CXX_STANDARD 20) + +project( + tracy-import-fuchsia + LANGUAGES ASM C CXX + VERSION ${TRACY_VERSION_STRING} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake) + +set(PROGRAM_FILES + src/import-fuchsia.cpp +) + +add_executable(${PROJECT_NAME} ${PROGRAM_FILES} ${COMMON_FILES} ${SERVER_FILES}) +target_link_libraries(${PROJECT_NAME} PRIVATE TracyServer) diff --git a/update/CMakeLists.txt b/update/CMakeLists.txt new file mode 100644 index 00000000..69010346 --- /dev/null +++ b/update/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required(VERSION 3.16) + +option(NO_ISA_EXTENSIONS "Disable ISA extensions (don't pass -march=native or -mcpu=native to the compiler)" OFF) +option(NO_STATISTICS "Disable calculation of statistics" ON) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) + +set(CMAKE_CXX_STANDARD 20) + +project( + tracy-update + LANGUAGES ASM C CXX + VERSION ${TRACY_VERSION_STRING} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/config.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/vendor.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/../cmake/server.cmake) + +set(PROGRAM_FILES + src/OfflineSymbolResolver.cpp + src/OfflineSymbolResolverAddr2Line.cpp + src/OfflineSymbolResolverDbgHelper.cpp + src/update.cpp +) + +add_executable(${PROJECT_NAME} ${PROGRAM_FILES} ${COMMON_FILES} ${SERVER_FILES}) +target_link_libraries(${PROJECT_NAME} PRIVATE TracyServer)