Adds BYOND-Tracy as part of the repo (#19839)

* [DNM] Adds BYOND-Tracy as part of the repo

* And its ready

* Update code/_compile_options.dm
This commit is contained in:
AffectedArc07
2022-12-13 16:46:30 +00:00
committed by GitHub
parent 363464801c
commit a69a67301e
6 changed files with 452 additions and 0 deletions
+5
View File
@@ -4,6 +4,11 @@
// This exists so that world.Profile() is THE FIRST PROC TO RUN in the init sequence.
// This allows us to get the real details of everything lagging at server start.
world.Profile(PROFILE_START)
#if defined(ENABLE_BYOND_TRACY) && (DM_BUILD == 1589)
var/tracy_init = CALL_EXT("prof.dll", "init")() // Setup Tracy integration
if(tracy_init != "0")
CRASH("Tracy init error: [tracy_init]")
#endif
// After that, the debugger is initialized.
// Doing it this early makes it possible to set breakpoints in the New()
// of things assigned to global variables or objects included in a compiled map file.