Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for traceReadCPU (0.11 sec)

  1. src/runtime/tracecpu.go

    // with traceAdvanceSema held.
    //
    // No more than one goroutine may be in traceReadCPU for the same
    // profBuf at a time.
    //
    // Must not run on the system stack because profBuf.read performs race
    // operations.
    func traceReadCPU(gen uintptr) bool {
    	var pcBuf [traceStackSize]uintptr
    
    	data, tags, eof := trace.cpuLogRead[gen%2].read(profBufNonBlocking)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/runtime/trace.go

    		statusWriter = statusWriter.writeGoStatus(ug.goid, ug.mid, status, ug.inMarkAssist, ug.stackID)
    	}
    	statusWriter.flush().end()
    
    	// Read everything out of the last gen's CPU profile buffer.
    	traceReadCPU(gen)
    
    	// Flush CPU samples, stacks, and strings for the last generation. This is safe,
    	// because we're now certain no M is writing to the last generation.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top