diff options
| author | Hyang-Ah Hana Kim <hyangah@gmail.com> | 2018-03-23 15:00:34 +0000 |
|---|---|---|
| committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | 2018-03-23 15:09:04 +0000 |
| commit | 58734039bdddbdfd3c7cd4f9fc232a75f5cef32a (patch) | |
| tree | d460c5fe378acf8139ea9f7179ffe94156e88e7c /src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go | |
| parent | c6e69ec7f930191022f1369761a680eecc2e89f1 (diff) | |
| download | go-58734039bdddbdfd3c7cd4f9fc232a75f5cef32a.tar.xz | |
Revert "cmd/vendor/.../pprof: refresh from upstream@a74ae6f"
This reverts commit c6e69ec7f930191022f1369761a680eecc2e89f1.
Reason for revert: Broke builders. #24508
Change-Id: I66abff0dd14ec6e1f8d8d982ccfb0438633b639d
Reviewed-on: https://go-review.googlesource.com/102316
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go')
| -rw-r--r-- | src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go b/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go index bebfbbec1e..b893697b62 100644 --- a/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go +++ b/src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go @@ -149,14 +149,9 @@ func greetings(p *profile.Profile, ui plugin.UI) { numLabelUnits := identifyNumLabelUnits(p, ui) ropt, err := reportOptions(p, numLabelUnits, pprofVariables) if err == nil { - rpt := report.New(p, ropt) - ui.Print(strings.Join(report.ProfileLabels(rpt), "\n")) - if rpt.Total() == 0 && len(p.SampleType) > 1 { - ui.Print(`No samples were found with the default sample value type.`) - ui.Print(`Try "sample_index" command to analyze different sample values.`, "\n") - } + ui.Print(strings.Join(report.ProfileLabels(report.New(p, ropt)), "\n")) } - ui.Print(`Entering interactive mode (type "help" for commands, "o" for options)`) + ui.Print("Entering interactive mode (type \"help\" for commands, \"o\" for options)") } // shortcuts represents composite commands that expand into a sequence |
