Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newProfBuf (0.52 sec)

  1. src/runtime/profbuf_test.go

    		}
    	}
    
    	myTags := make([]byte, 100)
    	t.Logf("myTags is %p", &myTags[0])
    
    	t.Run("BasicWriteRead", func(t *testing.T) {
    		b := NewProfBuf(2, 11, 1)
    		write(t, b, unsafe.Pointer(&myTags[0]), 1, []uint64{2, 3}, []uintptr{4, 5, 6, 7, 8, 9})
    		read(t, b, []uint64{10, 1, 2, 3, 4, 5, 6, 7, 8, 9}, []unsafe.Pointer{unsafe.Pointer(&myTags[0])})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 20:04:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. src/runtime/tracecpu.go

    	}
    	// Create new profBuf for CPU samples that will be emitted as events.
    	// Format: after the timestamp, header is [pp.id, gp.goid, mp.procid].
    	trace.cpuLogRead[0] = newProfBuf(3, profBufWordCount, profBufTagCount)
    	trace.cpuLogRead[1] = newProfBuf(3, profBufWordCount, profBufTagCount)
    	// We must not acquire trace.signalLock outside of a signal handler: a
    	// profiling signal may arrive at any time and try to acquire it, leading to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/cpuprof.go

    		if cpuprof.on || cpuprof.log != nil {
    			print("runtime: cannot set cpu profile rate until previous profile has finished.\n")
    			unlock(&cpuprof.lock)
    			return
    		}
    
    		cpuprof.on = true
    		cpuprof.log = newProfBuf(1, profBufWordCount, profBufTagCount)
    		hdr := [1]uint64{uint64(hz)}
    		cpuprof.log.write(nil, nanotime(), hdr[:], nil)
    		setcpuprofilerate(int32(hz))
    	} else if cpuprof.on {
    		setcpuprofilerate(0)
    		cpuprof.on = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top