Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEmptyStack (0.1 sec)

  1. src/runtime/pprof/proto_test.go

    			continue
    		}
    	}
    }
    
    // Make sure the profiler can handle an empty stack trace.
    // See issue 37967.
    func TestEmptyStack(t *testing.T) {
    	b := []uint64{
    		3, 0, 500, // hz = 500
    		3, 0, 10, // 10 samples with an empty stack trace
    	}
    	_, err := translateCPUProfile(b, 2)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 23:21:53 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top