delve/service/debugger
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
..
debugger_darwin.go Add support for Windows. 2016-01-20 19:06:31 -08:00
debugger_freebsd.go *: FreeBSD initial support (#1480) 2019-07-12 18:28:04 -07:00
debugger_linux.go debugger: make yama error more verbose 2018-08-20 10:37:04 -07:00
debugger_windows.go Add support for Windows. 2016-01-20 19:06:31 -08:00
debugger.go proc: only format registers value when it's necessary (#1860) 2020-02-12 13:31:48 -08:00
locations_test.go *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
locations.go proc: support DW_AT_go_package_name (#1757) 2019-11-25 09:10:18 -08:00