- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for profileDescriptions (0.14 sec)
-
src/net/http/pprof/pprof.go
Name: p.Name(), Href: p.Name(), Desc: profileDescriptions[p.Name()], Count: p.Count(), }) } // Adding other profiles exposed from within this package for _, p := range []string{"cmdline", "profile", "trace"} { profiles = append(profiles, profileEntry{ Name: p, Href: p, Desc: profileDescriptions[p], }) } sort.Slice(profiles, func(i, j int) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 17:34:05 UTC 2024 - 14.1K bytes - Viewed (0) -
src/net/http/pprof/pprof_test.go
// have a key in the description map. func TestDescriptions(t *testing.T) { for _, p := range pprof.Profiles() { _, ok := profileDescriptions[p.Name()] if ok != true { t.Errorf("%s does not exist in profileDescriptions map\n", p.Name()) } } } func TestHandlers(t *testing.T) { testCases := []struct { path string handler http.HandlerFunc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 19:52:28 UTC 2023 - 9.7K bytes - Viewed (0)