mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
Added Tracy profiler
This commit is contained in:
parent
fbca6f3302
commit
7ab17176d0
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -55,3 +55,6 @@
|
|||
[submodule "externals/xxhash"]
|
||||
path = externals/xxhash
|
||||
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.qrc
|
||||
externals/stb_image.h
|
||||
externals/tracy/*
|
||||
Copyright: shadPS4 Emulator Project
|
||||
License: GPL-2.0-or-later
|
||||
|
|
|
@ -500,7 +500,7 @@ endif()
|
|||
|
||||
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)
|
||||
|
||||
if (NOT ENABLE_QT_GUI)
|
||||
|
|
8
externals/CMakeLists.txt
vendored
8
externals/CMakeLists.txt
vendored
|
@ -93,3 +93,11 @@ add_subdirectory(sirit EXCLUDE_FROM_ALL)
|
|||
if (WIN32)
|
||||
target_compile_options(sirit PUBLIC "-Wno-error=unused-command-line-argument")
|
||||
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)
|
||||
|
|
1
externals/tracy
vendored
Submodule
1
externals/tracy
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ef96964f71885e9ff177253ce0465569787e4a4c
|
|
@ -10,3 +10,5 @@
|
|||
#else
|
||||
#error What the fuck is this compiler
|
||||
#endif
|
||||
|
||||
#include <tracy/Tracy.hpp>
|
||||
|
|
Loading…
Reference in a new issue