sp1
sp1 copied to clipboard
feat: allow to profile inline functions
Motivation
It's sometimes useful to be able to have inlines function shown in the call stack when profiling a program
Solution
- Add a new
TRACE_INLINE_FUNCTIONenv variable to enable inline functions tracking - Load inline functions metadata using the DWARF
- Uses
JALandJALRopcodes to correctly handle recursive functions
PR Checklist
- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
Thanks for this improvement! Profiling inline functions seems very useful for understanding performance bottlenecks more precisely. Just curious do you see any impact on compilation time or binary size with this change?