mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
fix typo
This commit is contained in:
parent
205b26bf13
commit
53e5166eb0
1 changed files with 3 additions and 3 deletions
|
|
@ -191,9 +191,9 @@ func (*HandlerT) WriteMemProfile(file string) error {
|
|||
|
||||
// Stacks returns a printed representation of the stacks of all goroutines.
|
||||
func (*HandlerT) Stacks() string {
|
||||
var b bytes.Buffer
|
||||
pprof.Lookup("goroutine").WriteTo(w, 2)
|
||||
return b.String()
|
||||
var buf bytes.Buffer
|
||||
pprof.Lookup("goroutine").WriteTo(buf, 2)
|
||||
return buf.String()
|
||||
}
|
||||
|
||||
// FreeOSMemory returns unused memory to the OS.
|
||||
|
|
|
|||
Loading…
Reference in a new issue