[Lldb-commits] [lldb] [lldb] Add symbol/table count into statistics (PR #136226)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 17 16:38:20 PDT 2025


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 HEAD~1...HEAD lldb/test/API/commands/statistics/basic/TestStats.py
``````````

</details>

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

``````````diff
--- TestStats.py	2025-04-17 22:57:56.000000 +0000
+++ TestStats.py	2025-04-17 23:37:50.537203 +0000
@@ -176,30 +176,33 @@
             "totalDebugInfoIndexLoadedFromCache",
             "totalDebugInfoIndexSavedToCache",
             "totalDebugInfoParseTime",
         ]
         self.verify_keys(debug_stats, '"debug_stats"', debug_stat_keys, None)
-        
+
         # Verify target stats keys.
         target_stats = debug_stats["targets"][0]
         target_stat_keys_exist = [
             "expressionEvaluation",
             "frameVariable",
             "moduleIdentifiers",
             "targetCreateTime",
         ]
         target_stat_keys_missing = ["firstStopTime", "launchOrAttachTime"]
-        self.verify_keys(target_stats, '"target_stats"', target_stat_keys, target_stat_keys_missing)
+        self.verify_keys(
+            target_stats, '"target_stats"', target_stat_keys, target_stat_keys_missing
+        )
         self.assertGreater(target_stats["targetCreateTime"], 0.0)
 
         # Verify module stats keys.
         for module_stats in debug_stats["modules"]:
             module_stat_keys_exist = [
                 "symbolsLoaded",
             ]
-            self.verify_keys(module_stats, '"module_stats"', module_stat_keys_exist, None)
-
+            self.verify_keys(
+                module_stats, '"module_stats"', module_stat_keys_exist, None
+            )
 
     def test_default_with_run(self):
         """Test "statistics dump" when running the target to a breakpoint.
 
         When we run the target, we expect to see 'launchOrAttachTime' and

``````````

</details>


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


More information about the lldb-commits mailing list