Added Tracy profiler
This commit is contained in:
parent
bff2f006fb
commit
e89b2d1cdd
|
@ -55,3 +55,6 @@
|
||||||
[submodule "externals/xxhash"]
|
[submodule "externals/xxhash"]
|
||||||
path = externals/xxhash
|
path = externals/xxhash
|
||||||
url = https://github.com/Cyan4973/xxHash.git
|
url = https://github.com/Cyan4973/xxHash.git
|
||||||
|
[submodule "externals/tracy"]
|
||||||
|
path = externals/tracy
|
||||||
|
url = https://github.com/shadps4-emu/tracy
|
||||||
|
|
|
@ -34,5 +34,6 @@ Files: CMakeSettings.json
|
||||||
src/shadps4.rc
|
src/shadps4.rc
|
||||||
src/shadps4.qrc
|
src/shadps4.qrc
|
||||||
externals/stb_image.h
|
externals/stb_image.h
|
||||||
|
externals/tracy/*
|
||||||
Copyright: shadPS4 Emulator Project
|
Copyright: shadPS4 Emulator Project
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
|
|
|
@ -500,7 +500,7 @@ endif()
|
||||||
|
|
||||||
create_target_directory_groups(shadps4)
|
create_target_directory_groups(shadps4)
|
||||||
|
|
||||||
target_link_libraries(shadps4 PRIVATE magic_enum::magic_enum fmt::fmt toml11::toml11 tsl::robin_map xbyak)
|
target_link_libraries(shadps4 PRIVATE magic_enum::magic_enum fmt::fmt toml11::toml11 tsl::robin_map xbyak Tracy::TracyClient)
|
||||||
target_link_libraries(shadps4 PRIVATE discord-rpc boost vma sirit vulkan-headers xxhash Zydis SPIRV glslang SDL3-shared)
|
target_link_libraries(shadps4 PRIVATE discord-rpc boost vma sirit vulkan-headers xxhash Zydis SPIRV glslang SDL3-shared)
|
||||||
|
|
||||||
if (NOT ENABLE_QT_GUI)
|
if (NOT ENABLE_QT_GUI)
|
||||||
|
|
|
@ -93,3 +93,11 @@ add_subdirectory(sirit EXCLUDE_FROM_ALL)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_compile_options(sirit PUBLIC "-Wno-error=unused-command-line-argument")
|
target_compile_options(sirit PUBLIC "-Wno-error=unused-command-line-argument")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Tracy
|
||||||
|
option(TRACY_ENABLE "" ON)
|
||||||
|
option(TRACY_NO_CRASH_HANDLER "" ON) # Otherwise texture cache exceptions will be treaten as a crash
|
||||||
|
option(TRACY_ON_DEMAND "" ON)
|
||||||
|
option(TRACY_NO_FRAME_IMAGE "" ON)
|
||||||
|
option(TRACY_FIBERS "" ON) # For AmdGpu frontend profiling
|
||||||
|
add_subdirectory(tracy EXCLUDE_FROM_ALL)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ef96964f71885e9ff177253ce0465569787e4a4c
|
|
@ -10,3 +10,5 @@
|
||||||
#else
|
#else
|
||||||
#error What the fuck is this compiler
|
#error What the fuck is this compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <tracy/Tracy.hpp>
|
||||||
|
|
Loading…
Reference in New Issue