llvm-project/cross-project-tests/debuginfo-tests/dexter/dex
gbtozers b3f1480204 [Dexter] Optimize breakpoint deletion in Visual Studio
Breakpoint deletion in visual studio is currently implemented by
iterating over the breakpoints we want to delete, for each of which we
iterate over the complete set of breakpoints in the debugger instance
until we find the one we wish to delete. Ideally we would resolve this
by directly deleting each breakpoint by some ID rather than searching
through the full breakpoint list for them, but in the absence of such a
feature in VS we can instead invert the loop to improve performance.

This patch changes breakpoint deletion to iterate over the complete list
of breakpoints, deleting breakpoints that match the breakpoints we
expect to delete by checking set membership. This represents a
worst-case improvement from O(nm) to O(n), for 'm' breakpoints being
deleted out of 'n' total. In practise this is almost exactly 'm'-times
faster, as when we delete multiple breakpoints they are typically
adjacent in the full breakpoint list.

Differential Revision: https://reviews.llvm.org/D120658
2022-03-01 13:13:38 +00:00
..
builder [Dexter] Add option to pass a Visual Studio solution instead of a binary 2021-10-08 17:39:51 +01:00
command [Dexter] Allow DexUnreachable in supplementary .dex files 2022-01-10 16:22:53 +00:00
debugger [Dexter] Optimize breakpoint deletion in Visual Studio 2022-03-01 13:13:38 +00:00
dextIR
heuristic [Dexter] Add DexDeclareAddress command and address function 2021-12-01 13:07:19 +00:00
tools [dexter] Don't generate results files by default 2022-02-11 15:45:43 +00:00
utils
__init__.py