Lines Matching full:prof
141 var prof bytes.Buffer
142 if err := StartCPUProfile(&prof); err != nil {
151 parseProfile(t, prof.Bytes(), func(count uintptr, stk []uintptr) {
242 var prof bytes.Buffer
243 if err := StartCPUProfile(&prof); err != nil {
266 var prof bytes.Buffer
267 if err := StartCPUProfile(&prof); err != nil {
277 parseProfile(t, prof.Bytes(), func(count uintptr, stk []uintptr) {
392 prof := w.String()
394 if !strings.HasPrefix(prof, "--- contention:\ncycles/second=") {
395 t.Fatalf("Bad profile header:\n%v", prof)
399 if !regexp.MustCompile(strings.Replace(test.re, "\t", "\t+", -1)).MatchString(prof) {
400 t.Fatalf("Bad %v entry, expect:\n%v\ngot:\n%v", test.name, test.re, prof)