Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newProfile (0.29 sec)

  1. src/runtime/pprof/pprof_test.go

    // Issue 18836.
    func TestEmptyCallStack(t *testing.T) {
    	name := fmt.Sprintf("test18836_%d", emptyCallStackTestRun)
    	emptyCallStackTestRun++
    
    	t.Parallel()
    	var buf strings.Builder
    	p := NewProfile(name)
    
    	p.Add("foo", 47674)
    	p.WriteTo(&buf, 1)
    	p.Remove("foo")
    	got := buf.String()
    	prefix := name + " profile: total 1\n"
    	if !strings.HasPrefix(got, prefix) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top