[Lldb-commits] [lldb] Report only loaded debug info in statistics dump (PR #81706)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 13 21:59:54 PST 2024
================
@@ -391,7 +392,14 @@ class SymbolFile : public PluginInterface {
/// entire file should be returned. The default implementation of this
/// function will iterate over all sections in a module and add up their
/// debug info only section byte sizes.
- virtual uint64_t GetDebugInfoSize() = 0;
+ ///
+ /// \param load_if_needed
+ /// If true, force loading any symbol files if they are not yet loaded and
+ /// add to the total size
+ ///
+ /// \returns
+ /// Total currently loaded debug info size in bytes
+ virtual uint64_t GetDebugInfoSize(bool load_if_needed = false) = 0;
----------------
clayborg wrote:
Maybe `load_all_debug_info` is more clear? It would be nice if this matches the named inside `StatisticsOptions` as well.
https://github.com/llvm/llvm-project/pull/81706
More information about the lldb-commits
mailing list