2017-10-11 00:09:52 +00:00
|
|
|
//
|
|
|
|
// Tracy profiler
|
|
|
|
// ----------------
|
|
|
|
//
|
|
|
|
// For fast integration, compile and
|
|
|
|
// link with this source file (and none
|
2018-07-30 16:12:42 +00:00
|
|
|
// other) in your executable (or in the
|
|
|
|
// main DLL / shared object on multi-DLL
|
|
|
|
// projects).
|
2017-10-11 00:09:52 +00:00
|
|
|
//
|
|
|
|
|
2017-10-16 19:34:39 +00:00
|
|
|
// Define TRACY_ENABLE to enable profiler.
|
|
|
|
|
2017-10-18 19:39:33 +00:00
|
|
|
#include "common/TracySystem.cpp"
|
|
|
|
|
2017-10-16 19:34:39 +00:00
|
|
|
#ifdef TRACY_ENABLE
|
|
|
|
|
2020-06-20 20:51:56 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
# pragma warning(push, 0)
|
|
|
|
#endif
|
|
|
|
|
2018-12-28 23:54:04 +00:00
|
|
|
#include "common/tracy_lz4.cpp"
|
2017-10-11 00:09:52 +00:00
|
|
|
#include "client/TracyProfiler.cpp"
|
2018-06-18 23:17:19 +00:00
|
|
|
#include "client/TracyCallstack.cpp"
|
2023-03-09 21:31:31 +00:00
|
|
|
#include "client/TracySysPower.cpp"
|
2019-02-21 20:59:02 +00:00
|
|
|
#include "client/TracySysTime.cpp"
|
2019-08-12 18:08:15 +00:00
|
|
|
#include "client/TracySysTrace.cpp"
|
2017-10-11 00:09:52 +00:00
|
|
|
#include "common/TracySocket.cpp"
|
2017-10-14 15:28:55 +00:00
|
|
|
#include "client/tracy_rpmalloc.cpp"
|
2019-06-27 15:09:47 +00:00
|
|
|
#include "client/TracyDxt1.cpp"
|
2021-05-31 20:38:22 +00:00
|
|
|
#include "client/TracyAlloc.cpp"
|
2022-10-27 23:21:52 +00:00
|
|
|
#include "client/TracyOverride.cpp"
|
2017-10-11 00:09:52 +00:00
|
|
|
|
2024-03-22 14:34:51 +00:00
|
|
|
#if defined(TRACY_HAS_CALLSTACK)
|
|
|
|
# if TRACY_HAS_CALLSTACK == 2 || TRACY_HAS_CALLSTACK == 3 || TRACY_HAS_CALLSTACK == 4 || TRACY_HAS_CALLSTACK == 6
|
|
|
|
# include "libbacktrace/alloc.cpp"
|
|
|
|
# include "libbacktrace/dwarf.cpp"
|
|
|
|
# include "libbacktrace/fileline.cpp"
|
|
|
|
# include "libbacktrace/mmapio.cpp"
|
|
|
|
# include "libbacktrace/posix.cpp"
|
|
|
|
# include "libbacktrace/sort.cpp"
|
|
|
|
# include "libbacktrace/state.cpp"
|
|
|
|
# if TRACY_HAS_CALLSTACK == 4
|
|
|
|
# include "libbacktrace/macho.cpp"
|
|
|
|
# else
|
|
|
|
# include "libbacktrace/elf.cpp"
|
|
|
|
# endif
|
|
|
|
# include "common/TracyStackFrames.cpp"
|
2019-11-29 11:04:47 +00:00
|
|
|
# endif
|
2019-01-20 15:55:33 +00:00
|
|
|
#endif
|
|
|
|
|
2017-10-11 00:09:52 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
# pragma comment(lib, "ws2_32.lib")
|
2018-06-18 23:17:19 +00:00
|
|
|
# pragma comment(lib, "dbghelp.lib")
|
2021-01-13 00:42:48 +00:00
|
|
|
# pragma comment(lib, "advapi32.lib")
|
|
|
|
# pragma comment(lib, "user32.lib")
|
2020-06-20 20:51:56 +00:00
|
|
|
# pragma warning(pop)
|
2017-10-11 00:09:52 +00:00
|
|
|
#endif
|
2017-10-16 19:34:39 +00:00
|
|
|
|
|
|
|
#endif
|