cpf
cpf copied to clipboard
Profiler Improvement
Fix bugs and improve speed of profilers
Profilers
- EdgeProf
- LoopProf
- LAMP
- SpecPriv
Pending on #3 results
Based on discussion with Simone, the wrapper around malloc can be replaced with pre and post hook of malloc call. (currently done by pattern matching - function replacement) Note no allocation is allowed in the hook, will lead to infinite loop.
SpecPriv will need to recognize all D0Ev destructors, since they can actually DELETE the object.
SpecPriv Modifications
- [ ]
available_externallylinkage type of functions, don't go in but rather recognize as external function - [ ] recognize allocation using LLVM memory builtins
- [ ] recognize special external functions (e.g.,
D0Evdeleting destructor)