[Lldb-commits] [lldb] Report only loaded debug info in statistics dump (PR #81706)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 13 21:46:40 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 61c83e9491b2be71a54b255cdb11f65365245953...497b0a76501923afc169922c3aab9e92fb00c511 lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStatisticsAPI.py 2024-02-14 05:43:53.000000 +0000
+++ TestStatisticsAPI.py 2024-02-14 05:46:32.286268 +0000
@@ -115,11 +115,11 @@
self.assertEqual(command_stats["thread backtrace"], 1)
# Verify original raw command is not duplicatedly captured.
self.assertNotIn("bt", command_stats)
# Verify bt's regex command is not duplicatedly captured.
self.assertNotIn("_regexp-bt", command_stats)
-
+
def test_command_stats_force(self):
"""
Test reporting all pssible debug info stats by force loading all debug
info. For example, dwo files
"""
@@ -134,11 +134,11 @@
# We need the current working directory to be set to the build directory
os.chdir(self.getBuildDir())
# Create a target with the object file we just created from YAML
target = self.dbg.CreateTarget(obj_path)
self.assertTrue(target, VALID_TARGET)
-
+
# Get statistics
stats_options = lldb.SBStatisticsOptions()
stats = target.GetStatistics(stats_options)
stream = lldb.SBStream()
stats.GetAsJSON(stream)
``````````
</details>
https://github.com/llvm/llvm-project/pull/81706
More information about the lldb-commits
mailing list