Giter VIP home page Giter VIP logo

byond-tracy's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

byond-tracy's Issues

515.1603+

It's not as simple as adding the signatures if you want backwards compatibility, as strings_len's offset has changed. Here's my non-backwards compatible patch:

diff --git a/prof.c b/prof.c
index 0cdcb9f..e6e39a4 100644
--- a/prof.c
+++ b/prof.c
@@ -210,6 +210,8 @@ size_t strlen(char const *const a) {
 #endif
 
 
 /* debugging */
 #if defined(UTRACY_DEBUG) || defined(DEBUG)
 #	include <stdio.h>
@@ -2719,7 +2721,7 @@ void *hook(char *const restrict dst, char *const restrict src, char unsigned siz
 }
 
 #if defined(UTRACY_WINDOWS)
-#	define BYOND_MAX_BUILD 1600
+#	define BYOND_MAX_BUILD 1603
 #	define BYOND_MIN_BUILD 1543
 #	define BYOND_VERSION_ADJUSTED(a) ((a) - BYOND_MIN_BUILD)
 
@@ -2783,6 +2785,7 @@ static int unsigned const byond_offsets[][7] = {
 	[BYOND_VERSION_ADJUSTED(1598)] = {0x0039EBC8, 0x0039EBD8, 0x0039EBE8, 0x0011BF40, 0x001F0B40, 0x001ACFF0, 0x00050606},
 	[BYOND_VERSION_ADJUSTED(1599)] = {0x0039EBC8, 0x0039EBD8, 0x0039EBE8, 0x0011B640, 0x001F0910, 0x001AC9B0, 0x00050606},
 	[BYOND_VERSION_ADJUSTED(1600)] = {0x0039EBC8, 0x0039EBD8, 0x0039EBE8, 0x0011BE70, 0x001F08B0, 0x001AD170, 0x00050606},
+	[BYOND_VERSION_ADJUSTED(1603)] = {0x003A3DE0, 0x003A3DF8, 0x003A3E08, 0x0011EC00, 0x001F3890, 0x001AFB90, 0x00050606},
 };
 
 #elif defined(UTRACY_LINUX)
@@ -2989,7 +2995,7 @@ char *UTRACY_WINDOWS_CDECL UTRACY_LINUX_CDECL init(int argc, char **argv) {
 
 #if defined(UTRACY_WINDOWS)
 	byond.strings = (void *) (byondcore + offsets[0]);
-	byond.strings_len = (void *) (byondcore + offsets[0] + 0x04);
+	byond.strings_len = (void *) (byondcore + offsets[0] + 0x08);
 	byond.miscs = (void *) (byondcore + offsets[1]);
 	byond.miscs_len = (void *) (byondcore + offsets[1] + 0x04);
 	byond.procdefs = (void *) (byondcore + offsets[2]);

Initial zones can be missed

I'm not sure what causes it, but sometimes when running a release build the initial zones can be not sent to the profiler.

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.