Home | History | Annotate | Download | only in pprof

Lines Matching defs:Profiles

23 // BUG(rsc): Profiles are incomplete and inaccurate on NetBSD and OS X.
28 // Packages can create and maintain their own profiles; the most common
34 // Each Profile has a unique name. A few profiles are predefined:
41 // These predefined profiles maintain themselves and panic on an explicit
63 // profiles records all registered profiles.
64 var profiles struct {
94 profiles.mu.Lock()
95 if profiles.m == nil {
96 // Initial built-in profiles.
97 profiles.m = map[string]*Profile{
107 profiles.mu.Unlock()
120 if profiles.m[name] != nil {
127 profiles.m[name] = p
135 return profiles.m[name]
138 // Profiles returns a slice of all the known profiles, sorted by name.
139 func Profiles() []*Profile {
144 for _, p := range profiles.m {
227 // The predefined profiles may assign meaning to other debug values;
366 // Interface to system profiles.