(entries []profileEntry)
| 73 | } |
| 74 | |
| 75 | func sortProfiles(entries []profileEntry) { |
| 76 | sort.Slice(entries, func(i, j int) bool { |
| 77 | return entries[i].Name < entries[j].Name |
| 78 | }) |
| 79 | } |
| 80 | |
| 81 | // Handler returns a http handler which responds with the pprof-formatted |
| 82 | // profile named by the request. For example, "/debug/pprof/heap" serves the |