GetLoadedModuleFileSpec was reading /proc/pid/maps character by character, which was very slow,
since we do that for every shared library, which android tends to have a lot. Switching to
ProcFileReader saves us about 0.4 seconds in attach time.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
Thanks for doing it. I planed to do it for a long time as a cleanup, but haven't expected it to have any effect on attach speed. If you still aren't happy with the parsing speed you can possibly cache the the content of /proc/<pid>/maps in memory for the time the process is stopped.
Comment Actions
Sounds like a good idea. That would help us a lot with qMemoryRegionInfo packets as well. I'll look into that.