|
@@ -149,9 +149,14 @@ func greetings(p *profile.Profile, ui plugin.UI) {
|
149
|
149
|
numLabelUnits := identifyNumLabelUnits(p, ui)
|
150
|
150
|
ropt, err := reportOptions(p, numLabelUnits, pprofVariables)
|
151
|
151
|
if err == nil {
|
152
|
|
- ui.Print(strings.Join(report.ProfileLabels(report.New(p, ropt)), "\n"))
|
|
152
|
+ rpt := report.New(p, ropt)
|
|
153
|
+ ui.Print(strings.Join(report.ProfileLabels(rpt), "\n"))
|
|
154
|
+ if rpt.Total() == 0 && len(p.SampleType) > 1 {
|
|
155
|
+ ui.Print(`No samples were found with the default sample value type.`)
|
|
156
|
+ ui.Print(`Try "sample_index" command to analyze different sample values.`, "\n")
|
|
157
|
+ }
|
153
|
158
|
}
|
154
|
|
- ui.Print("Entering interactive mode (type \"help\" for commands, \"o\" for options)")
|
|
159
|
+ ui.Print(`Entering interactive mode (type "help" for commands, "o" for options)`)
|
155
|
160
|
}
|
156
|
161
|
|
157
|
162
|
// shortcuts represents composite commands that expand into a sequence
|