mafemergency / byond-tracy Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
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]);
I'm not sure what causes it, but sometimes when running a release build the initial zones can be not sent to the profiler.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.