Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for stk (0.04 sec)

  1. src/runtime/profbuf_test.go

    	. "runtime"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    func TestProfBuf(t *testing.T) {
    	const hdrSize = 2
    
    	write := func(t *testing.T, b *ProfBuf, tag unsafe.Pointer, now int64, hdr []uint64, stk []uintptr) {
    		b.Write(&tag, now, hdr, stk)
    	}
    	read := func(t *testing.T, b *ProfBuf, data []uint64, tags []unsafe.Pointer) {
    		rdata, rtags, eof := b.Read(ProfBufNonBlocking)
    		if !reflect.DeepEqual(rdata, data) || !reflect.DeepEqual(rtags, tags) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 20:04:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top