[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:53 PST 2024
    
    
  
================
@@ -24,6 +24,9 @@ class LLDB_API SBStatisticsOptions {
 
   void SetSummaryOnly(bool b);
   bool GetSummaryOnly();
+  
+  void SetForceLoading(bool b);
+  bool GetForceLoading();
----------------
clayborg wrote:
The `SetForceLoading` name doesn't clearly indicate to us what we are force loading just by the API name. How about:
```
/// If set to true, the debugger will load all debug info that is available
/// and report statistics on the total amount. If this is set to false, then
/// only report statistics on the currently loaded debug information. 
/// This can avoid loading debug info from separate files just so it can
/// report the total size which can slow down statistics reporting.
void SetReportAllAvailableDebugInfo(bool b);
bool SetReportAllAvailableDebugInfo();
```
This setting would default to `false`.
https://github.com/llvm/llvm-project/pull/81706
    
    
More information about the lldb-commits
mailing list