]> Cypherpunks repositories - gostls13.git/commit
cmd/pprof: don't print binary outputs in interactive mode
authorHiroshi Ioka <hirochachacha@gmail.com>
Fri, 16 Sep 2016 07:25:48 +0000 (16:25 +0900)
committerRuss Cox <rsc@golang.org>
Fri, 11 Nov 2016 14:47:41 +0000 (14:47 +0000)
commitc439a5d8b77a3b87d94bc49714faeeb2a04112f4
treeba81412e1376ad7a62f10ff29d5595ad1123cfe0
parent428df5e39c0a696b71724237879a22a718a854a7
cmd/pprof: don't print binary outputs in interactive mode

Some commands generate binary outputs which are not human readable.
In interactive mode, there are no use-cases for such outputs.
Instead, the new code writes it to the temporary file on the $CWD and
shows the file name. So the user can use any program to display the
file outside interactive shell.

Fixes #17465

Change-Id: I5c479db26017607f7a28eafbff2385533e5c584e
Reviewed-on: https://go-review.googlesource.com/31123
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/pprof/internal/commands/commands.go