GithubHelp home page GithubHelp logo

byond-tracy's Introduction

byond-tracy

byond-tracy glues together a byond server with the tracy profiler allowing you to analyze and visualize proc calls

supported byond versions

windows linux
515.1636 515.1636
515.1635 515.1635
515.1634 515.1634
515.1633 515.1633
515.1632 515.1632
515.1631 515.1631
515.1630 515.1630
515.1627 515.1627
515.1626 515.1626
515.1625 515.1625
515.1624 515.1624
515.1623 515.1623
515.1622 515.1622
515.1621 515.1621
515.1620 515.1620
515.1619 515.1619
515.1618 515.1618
515.1617 515.1617
515.1616 515.1616
515.1615 515.1615
515.1614 515.1614
515.1613 515.1613
515.1612
515.1611 515.1611
515.1610 515.1610
515.1609 515.1609
515.1608 515.1608
515.1607 515.1607
515.1606 515.1606
515.1605 515.1605
515.1604 515.1604
515.1603 515.1603
515.1602 515.1602
515.1601 515.1601
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.*

supported tracy versions

0.8.1 0.8.2 0.9.0 0.9.1 0.10.0

usage

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()
	. = ..()

env vars

set these env vars before launching dreamdaemon to control which node and service to bind

UTRACY_BIND_ADDRESS
UTRACY_BIND_PORT

building

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

remarks

byond-tracy is in its infancy and is not production ready for live servers.

byond-tracy's People

Contributors

fluffyghoster avatar mafemergency avatar mothblocks avatar vvvv-vvvv avatar zewaka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.