wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
8.67k stars 598 forks source link

API for runtime generated symbols #719

Open merryhime opened 5 months ago

merryhime commented 5 months ago

I was wondering if an API exists to insert new symbols ± remove them at runtime. The usecase would be for a project with a JIT compiler which wishes for callstack and profiling to work across JITted code.

wolfpld commented 5 months ago

No such API is available.

merryhime commented 5 months ago

Thanks. I will consider implementation in the future if time permits if desired.

wolfpld commented 5 months ago

The main problems are that: a) there are 6 or 7 different platform-specific implementations of symbol resolvers, b) the APIs in use were added as needed, so it may take a while to properly work out what is for what.