Lines Matching defs:Profiles
14 // memory profiles to cpu.prof and mem.prof:
54 // URL to download live profiles:
60 // Profiles can then be visualized with the pprof tool:
88 // BUG(rsc): Profiles are only as good as the kernel support used to generate them.
93 // Packages can create and maintain their own profiles; the most common
99 // Each Profile has a unique name. A few profiles are predefined:
107 // These predefined profiles maintain themselves and panic on an explicit
129 // profiles records all registered profiles.
130 var profiles struct {
166 profiles.mu.Lock()
167 if profiles.m == nil {
168 // Initial built-in profiles.
169 profiles.m = map[string]*Profile{
180 profiles.mu.Unlock()
195 if profiles.m[name] != nil {
202 profiles.m[name] = p
210 return profiles.m[name]
213 // Profiles returns a slice of all the known profiles, sorted by name.
214 func Profiles() []*Profile {
218 all := make([]*Profile, 0, len(profiles.m))
219 for _, p := range profiles.m {
301 // The predefined profiles may assign meaning to other debug values;
349 // printCountCycleProfile outputs block profile records (for block or mutex profiles)
352 // and the number of cycles for block, contention profiles.
372 // For count profiles, all stack addresses are
437 // For count profiles, all stack addresses are
498 // Interface to system profiles.