TracyClient.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // Tracy profiler
  3. // ----------------
  4. //
  5. // For fast integration, compile and
  6. // link with this source file (and none
  7. // other) in your executable (or in the
  8. // main DLL / shared object on multi-DLL
  9. // projects).
  10. //
  11. // Define TRACY_ENABLE to enable profiler.
  12. #include "common/TracySystem.cpp"
  13. #ifdef TRACY_ENABLE
  14. #ifdef _MSC_VER
  15. # pragma warning(push, 0)
  16. #endif
  17. #include "common/tracy_lz4.cpp"
  18. #include "client/TracyProfiler.cpp"
  19. #include "client/TracyCallstack.cpp"
  20. #include "client/TracySysTime.cpp"
  21. #include "client/TracySysTrace.cpp"
  22. #include "common/TracySocket.cpp"
  23. #include "client/tracy_rpmalloc.cpp"
  24. #include "client/TracyDxt1.cpp"
  25. #if TRACY_HAS_CALLSTACK == 2 || TRACY_HAS_CALLSTACK == 3 || TRACY_HAS_CALLSTACK == 4 || TRACY_HAS_CALLSTACK == 6
  26. # include "libbacktrace/alloc.cpp"
  27. # include "libbacktrace/dwarf.cpp"
  28. # include "libbacktrace/fileline.cpp"
  29. # include "libbacktrace/mmapio.cpp"
  30. # include "libbacktrace/posix.cpp"
  31. # include "libbacktrace/sort.cpp"
  32. # include "libbacktrace/state.cpp"
  33. # if TRACY_HAS_CALLSTACK == 4
  34. # include "libbacktrace/macho.cpp"
  35. # else
  36. # include "libbacktrace/elf.cpp"
  37. # endif
  38. #endif
  39. #ifdef _MSC_VER
  40. # pragma comment(lib, "ws2_32.lib")
  41. # pragma comment(lib, "dbghelp.lib")
  42. # pragma comment(lib, "advapi32.lib")
  43. # pragma comment(lib, "user32.lib")
  44. # pragma warning(pop)
  45. #endif
  46. #endif