mirror of
https://github.com/golang/go.git
synced 2025-05-30 19:52:53 +00:00
runtime/debug: clarify WriteHeapDump STW behavior
Change-Id: I049d2596fe8ce0e93391599f5c224779fd8e316f Reviewed-on: https://go-review.googlesource.com/20761 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
9f301643bd
commit
ed73efbb74
@ -155,6 +155,12 @@ func SetPanicOnFault(enabled bool) bool {
|
|||||||
|
|
||||||
// WriteHeapDump writes a description of the heap and the objects in
|
// WriteHeapDump writes a description of the heap and the objects in
|
||||||
// it to the given file descriptor.
|
// it to the given file descriptor.
|
||||||
|
//
|
||||||
|
// WriteHeapDump suspends the execution of all goroutines until the heap
|
||||||
|
// dump is completely written. Thus, the file descriptor must not be
|
||||||
|
// connected to a pipe or socket whose other end is in the same Go
|
||||||
|
// process; instead, use a temporary file or network socket.
|
||||||
|
//
|
||||||
// The heap dump format is defined at https://golang.org/s/go15heapdump.
|
// The heap dump format is defined at https://golang.org/s/go15heapdump.
|
||||||
func WriteHeapDump(fd uintptr)
|
func WriteHeapDump(fd uintptr)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user