tracy/TracyClient.cpp
Bartosz Taudul 5cbe2c6ae5 Reorder tracy_lz4.cpp vs TracyProfiler.cpp in TracyClient.cpp.
This fixes deprecation warning in tracy_lz4.hpp, which was previously
present due to TracyProfiler.cpp including tracy_lz4.hpp before an
appropriate deprecation restraining macro was defined in tracy_lz4.cpp.
Note that this issue was only present if TracyClient.cpp was used to
include the profiler in a project. Including the profiler as a
collection of separate source files worked correctly, as the deprecated
function is only used by tracy_lz4.cpp.
2018-12-29 01:00:14 +01:00

30 lines
620 B
C++

//
// Tracy profiler
// ----------------
//
// For fast integration, compile and
// link with this source file (and none
// other) in your executable (or in the
// main DLL / shared object on multi-DLL
// projects).
//
// Define TRACY_ENABLE to enable profiler.
#include "common/TracySystem.cpp"
#ifdef TRACY_ENABLE
#include "common/tracy_lz4.cpp"
#include "client/TracyProfiler.cpp"
#include "client/TracyCallstack.cpp"
#include "common/TracySocket.cpp"
#include "client/tracy_rpmalloc.cpp"
#ifdef _MSC_VER
# pragma comment(lib, "ws2_32.lib")
# pragma comment(lib, "dbghelp.lib")
#endif
#endif