delve/pkg/proc/core
Alessandro Arzilli b9d0ddd82c
proc: only format registers value when it's necessary (#1860)
A significant amount of time is spent generating the string
representation 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.

Also by changing the internal representation of proc.Register to be
closer to that of op.DwarfRegister it will help us implement #1838
(when Delve will need to be able to display the registers of an
internal frame, which we currently represent using op.DwarfRegister
objects).

Benchmark before:

BenchmarkConditionalBreakpoints-4   	       1	22292554301 ns/op

Benchmark after:

BenchmarkConditionalBreakpoints-4   	       1	17326345671 ns/op

Reduces conditional breakpoint latency from 2.2ms to 1.7ms.

Updates #1549, #1838
2020-02-12 13:31:48 -08:00
..
minidump *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
core_test.go proc: only format registers value when it's necessary (#1860) 2020-02-12 13:31:48 -08:00
core.go *: Go 1.14 support branch (#1727) 2020-02-10 17:31:54 -08:00
linux_amd64_core.go *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
windows_amd64_minidump.go Miscellaneous logging improvements (#1525) 2019-03-27 14:58:36 -07:00