byond-tracy glues together a byond server with the tracy profiler allowing you to analyze and visualize proc calls
windows | linux |
---|---|
515.1600 | 515.1600 |
515.1599 | 515.1599 |
515.1598 | 515.1598 |
515.1597 | 515.1597 |
515.1596 | 515.1596 |
515.1595 | 515.1595 |
515.1594 | 515.1594 |
515.1593 | 515.1593 |
515.1592 | 515.1592 |
515.1591 | 515.1591 |
515.1590 | 515.1590 |
514.* | 514.* |
0.8.1
0.8.2
simply call init
from prof.dll
to begin collecting profile data and connect using tracy-server Tracy.exe
/proc/prof_init()
var/lib
switch(world.system_type)
if(MS_WINDOWS) lib = "prof.dll"
if(UNIX) lib = "libprof.so"
else CRASH("unsupported platform")
var/init = call_ext(lib, "init")()
if("0" != init) CRASH("[lib] init error: [init]")
/world/New()
prof_init()
. = ..()
set these env vars before launching dreamdaemon to control which node and service to bind
UTRACY_BIND_ADDRESS
UTRACY_BIND_PORT
no build system included, simply invoke your preferred c11 compiler. examples:
cl.exe /nologo /std:c11 /O2 /LD /DNDEBUG prof.c ws2_32.lib /Fe:prof.dll
clang.exe -std=c11 -m32 -shared -Ofast3 -DNDEBUG -fuse-ld=lld-link prof.c -lws2_32 -o prof.dll
gcc -std=c11 -m32 -shared -fPIC -Ofast -s -DNDEBUG prof.c -pthread -o libprof.so
byond-tracy is in its infancy and is not production ready for live servers.