[Lldb-commits] [lldb] [lldb][Dwarf] Fix dwarf parse time for line table and .debug_abbrev. (PR #86568)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 25 14:04:36 PDT 2024


================
@@ -1228,10 +1231,9 @@ bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
   if (offset == DW_INVALID_OFFSET)
     return false;
 
-  ElapsedTime elapsed(m_parse_time);
----------------
clayborg wrote:

We want all of the time in LLDB to parse and prepare the data, not just the parsing time. We use this same variable via `ElapsedTime elapsed(m_dwarf.GetDebugInfoParseTimeRef());` in DWARFUnit.cpp to time how long it takes to parse and prepare the DIE tree for usage.

So the m_parse_time _is_ intended to be used to measure how long LLDB needs to parse the DWARF from the object file _and_ how long it takes to prepare the data so it can be used.

https://github.com/llvm/llvm-project/pull/86568


More information about the lldb-commits mailing list