Don't use libdwarf in DwarfState
commit53d44fee4fb445220985bfe7bfa5446679ccc4b3
authorMark Williams <mwilliams@fb.com>
Sun, 16 Sep 2018 16:54:54 +0000 (16 09:54 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sun, 16 Sep 2018 16:57:18 +0000 (16 09:57 -0700)
tree48805d8b3dde80d6424d965c92fdf202b1a9df6e
parent5857ae754fb7f34176ce483514416ed3491a4c2f
Don't use libdwarf in DwarfState

Summary:
It spends too much time walking linked lists of contexts (when there
are 10^6 of them, this is a problem), and allocates way too much
memory, rather than just pointing directly at the dwarf data.

Reviewed By: ricklavoie

Differential Revision: D9802566

fbshipit-source-id: 5315aa4250756b073fc863fd54ae2f4a5916508a
hphp/tools/debug-parser/debug-parser-dwarf.cpp
hphp/tools/debug-parser/dwarfstate.cpp
hphp/tools/debug-parser/dwarfstate.h