diff options
| author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | 2018-03-20 16:56:20 -0400 |
|---|---|---|
| committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | 2018-03-23 14:36:29 +0000 |
| commit | c6e69ec7f930191022f1369761a680eecc2e89f1 (patch) | |
| tree | eb57044879d427d13d3ff49dcbd41a01304a7d75 /src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go | |
| parent | 50921bfa2e154f2e9346ebefba073c15c8afc453 (diff) | |
| download | go-c6e69ec7f930191022f1369761a680eecc2e89f1.tar.xz | |
cmd/vendor/.../pprof: refresh from upstream@a74ae6f
Merges updates listed in
https://github.com/google/pprof/compare/0e0e5b725...a74ae6f
Update #24443
cmd/vendor/vendor.json was updated manually.
Change-Id: I15d5fe82ac18263d4d54f5773cee0e197e93dd59
Reviewed-on: https://go-review.googlesource.com/101736
Reviewed-by: Alberto Donizetti <alb.donizetti@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, 7 insertions, 2 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 b893697b62..bebfbbec1e 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,9 +149,14 @@ func greetings(p *profile.Profile, ui plugin.UI) { numLabelUnits := identifyNumLabelUnits(p, ui) ropt, err := reportOptions(p, numLabelUnits, pprofVariables) if err == nil { - ui.Print(strings.Join(report.ProfileLabels(report.New(p, ropt)), "\n")) + 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("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 |
