Change-Id: Ie416ed0d7abcb64e63d999b8cee5975a0fc13875
Reviewed-on: https://go-review.googlesource.com/c/go/+/622496
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
"runtime"
"runtime/pprof"
"runtime/trace"
- "sort"
+ "slices"
"strconv"
"strings"
"time"
})
}
- sort.Slice(profiles, func(i, j int) bool {
- return profiles[i].Name < profiles[j].Name
+ slices.SortFunc(profiles, func(a, b profileEntry) int {
+ return strings.Compare(a.Name, b.Name)
})
if err := indexTmplExecute(w, profiles); err != nil {