fix pointer receiver

This commit is contained in:
Péter Szilágyi 2018-06-14 16:21:56 +03:00 committed by GitHub
parent 53e5166eb0
commit 0c022a77e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,7 @@ func (*HandlerT) WriteMemProfile(file string) error {
// Stacks returns a printed representation of the stacks of all goroutines.
func (*HandlerT) Stacks() string {
var buf bytes.Buffer
buf := new(bytes.Buffer)
pprof.Lookup("goroutine").WriteTo(buf, 2)
return buf.String()
}