diff options
Diffstat (limited to 'libgo/go/runtime/debug.go')
-rw-r--r-- | libgo/go/runtime/debug.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/runtime/debug.go b/libgo/go/runtime/debug.go index 0211ce61b88..9da71a7857c 100644 --- a/libgo/go/runtime/debug.go +++ b/libgo/go/runtime/debug.go @@ -168,3 +168,10 @@ func BlockProfile(p []BlockProfileRecord) (n int, ok bool) // If all is true, Stack formats stack traces of all other goroutines // into buf after the trace for the current goroutine. func Stack(buf []byte, all bool) int + +// Get field tracking information. Only fields with a tag go:"track" +// are tracked. This function will add every such field that is +// referenced to the map. The keys in the map will be +// PkgPath.Name.FieldName. The value will be true for each field +// added. +func Fieldtrack(map[string]bool) |