llvm-project/lldb/source/Breakpoint
Greg Clayton fb25496832 Add breakpoint resolving stats to each target.
This patch adds breakpoints to each target's statistics so we can track how long it takes to resolve each breakpoint. It also includes the structured data for each breakpoint so the exact breakpoint details are logged to allow for reproduction of slow resolving breakpoints. Each target gets a new "breakpoints" array that contains breakpoint details. Each breakpoint has "details" which is the JSON representation of a serialized breakpoint resolver and filter, "id" which is the breakpoint ID, and "resolveTime" which is the time in seconds it took to resolve the breakpoint. A snippet of the new data is shown here:

  "targets": [
    {
      "breakpoints": [
        {
          "details": {...},
          "id": 1,
          "resolveTime": 0.00039291599999999999
        },
        {
          "details": {...},
          "id": 2,
          "resolveTime": 0.00022679199999999999
        }
      ],
      "totalBreakpointResolveTime": 0.00061970799999999996
    }
  ]

This provides full details on exactly how breakpoints were set and how long it took to resolve them.

Differential Revision: https://reviews.llvm.org/D112587
2021-10-27 16:50:11 -07:00
..
Breakpoint.cpp Add breakpoint resolving stats to each target. 2021-10-27 16:50:11 -07:00
BreakpointID.cpp Use llvm::is_contained (NFC) 2021-10-24 09:32:57 -07:00
BreakpointIDList.cpp [lldb] Remove redundant calls to set eReturnStatusFailed 2021-06-17 12:21:54 +01:00
BreakpointList.cpp Use llvm::erase_if (NFC) 2021-10-18 09:33:42 -07:00
BreakpointLocation.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointLocationCollection.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
BreakpointLocationList.cpp
BreakpointName.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointOptions.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointPrecondition.cpp
BreakpointResolver.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
BreakpointResolverAddress.cpp [lldb][NFC] Remove dead code in BreakpointResolverAddress 2020-08-10 11:29:40 +02:00
BreakpointResolverFileLine.cpp [source map] fix relative path breakpoints 2021-07-29 18:36:06 -07:00
BreakpointResolverFileRegex.cpp [lldb] Refactor argument group by SourceLocationSpec (NFCI) 2021-05-04 23:04:31 +00:00
BreakpointResolverName.cpp [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
BreakpointResolverScripted.cpp [lldb] Make BreakpointResolver hold weak_ptr instead of raw pointer to breakpoint 2020-03-04 16:56:50 +03:00
BreakpointSite.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
BreakpointSiteList.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
CMakeLists.txt [lldb/Breakpoint] Rename StoppointLocation to StoppointSite and drop its relationship with BreakpointLocation 2020-07-29 22:07:46 +03:00
Stoppoint.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
StoppointCallbackContext.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
StoppointSite.cpp [lldb/Breakpoint] Rename StoppointLocation to StoppointSite and drop its relationship with BreakpointLocation 2020-07-29 22:07:46 +03:00
Watchpoint.cpp [lldb/Breakpoint] Rename StoppointLocation to StoppointSite and drop its relationship with BreakpointLocation 2020-07-29 22:07:46 +03:00
WatchpointList.cpp [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
WatchpointOptions.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00