Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newProfBuf (0.27 sec)

  1. src/runtime/profbuf.go

    		if int32(overflow) == -1 {
    			break
    		}
    		if b.overflow.CompareAndSwap(overflow, overflow+1) {
    			break
    		}
    	}
    }
    
    // newProfBuf returns a new profiling buffer with room for
    // a header of hdrsize words and a buffer of at least bufwords words.
    func newProfBuf(hdrsize, bufwords, tags int) *profBuf {
    	if min := 2 + hdrsize + 1; bufwords < min {
    		bufwords = min
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    func Fastrand64() uint64        { return rand() }
    func Fastrandn(n uint32) uint32 { return randn(n) }
    
    type ProfBuf profBuf
    
    func NewProfBuf(hdrsize, bufwords, tags int) *ProfBuf {
    	return (*ProfBuf)(newProfBuf(hdrsize, bufwords, tags))
    }
    
    func (p *ProfBuf) Write(tag *unsafe.Pointer, now int64, hdr []uint64, stk []uintptr) {
    	(*profBuf)(p).write(tag, now, hdr, stk)
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top