javierhonduco / lightswitch

CPU profiler for Linux written in Rust
MIT License
7 stars 3 forks source link

Add virtual address and file offset for frames #51

Closed javierhonduco closed 5 months ago

javierhonduco commented 5 months ago

We need both to be able to find memory mappings (*) and the offset in the object file (what we typically refer to normalized address) to be able to symbolize an address.

(*) Having to compute mappings in many parts of the code is not ideal but we'll keep around both normalized and virtual addresses until the profiler design is more settled.

Test Plan

Manual tests.