forked from go-delve/delve
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proc: only format registers value when it's necessary
Reduces the minimum amount of time needed to stop and resume a process that hits a breakpoint. A significant amount of time is spent generating the strings for the proc.Registers object of each thread, since this field is rarely used (only when the Registers API is called) it should be generated on demand. Benchmark before: BenchmarkConditionalBreakpoints-4 1 22218288218 ns/op Benchmark after: BenchmarkConditionalBreakpoints-4 1 18397062447 ns/op i.e. this commit reduces the time spent stopping and resuming a process from 2.2ms to 1.8ms. Updates go-delve#1549
- Loading branch information
Showing
12 changed files
with
285 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.