[Lldb-commits] [lldb] [lldb] Track execution time of commands in statistics (PR #200817)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 1 06:36:39 PDT 2026
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 origin/main...HEAD lldb/test/API/commands/statistics/basic/TestStats.py lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- commands/statistics/basic/TestStats.py 2026-06-01 13:34:07.000000 +0000
+++ commands/statistics/basic/TestStats.py 2026-06-01 13:35:49.612891 +0000
@@ -446,11 +446,10 @@
# Check that duration increases with each command.
interp.HandleCommand("target list", result)
debug_stats = self.get_stats()
command_stats = self.get_command_stats(debug_stats)
self.assertGreater(command_stats["target list"]["duration"], old_duration)
-
def test_breakpoints(self):
"""Test "statistics dump"
Output expected to be something like:
``````````
</details>
https://github.com/llvm/llvm-project/pull/200817
More information about the lldb-commits
mailing list