[Lldb-commits] [lldb] [Reland] Report only loaded debug info in statistics dump (#81706) (PR #82207)

via lldb-commits lldb-commits at lists.llvm.org
Sun Feb 18 21:17:10 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 79709498eaa57095a9888b882e94f6d15a244d4b...bd9ea7da20587e3ad982c0e0884374d73c4d2b0e lldb/test/API/commands/target/debuginfo/TestDebugInfoSize.py lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- commands/target/debuginfo/TestDebugInfoSize.py	2024-02-19 04:12:41.000000 +0000
+++ commands/target/debuginfo/TestDebugInfoSize.py	2024-02-19 05:17:03.401880 +0000
@@ -128,13 +128,12 @@
         self.assertIn(
             "totalDebugInfoByteSize",
             debug_stats,
             'Make sure the "totalDebugInfoByteSize" key is in target.GetStatistics()',
         )
-        self.assertEqual(
-            debug_stats["totalDebugInfoByteSize"], SKELETON_DEBUGINFO_SIZE)
-        
+        self.assertEqual(debug_stats["totalDebugInfoByteSize"], SKELETON_DEBUGINFO_SIZE)
+
         # Force loading all the dwo files
         stats_options = lldb.SBStatisticsOptions()
         stats_options.SetReportAllAvailableDebugInfo(True)
         stats = target.GetStatistics(stats_options)
         stream = lldb.SBStream()

``````````

</details>


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


More information about the lldb-commits mailing list