Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readFrame (0.15 sec)

  1. src/runtime/trace.go

    	}
    }
    
    // ReadTrace returns the next chunk of binary tracing data, blocking until data
    // is available. If tracing is turned off and all the data accumulated while it
    // was on has been returned, ReadTrace returns nil. The caller must copy the
    // returned data before calling ReadTrace again.
    // ReadTrace must be called from one goroutine at a time.
    func ReadTrace() []byte {
    top:
    	var buf []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. src/internal/trace/internal/oldtrace/parser.go

    	// The ordering of CPU profile sample events in the data stream is based on
    	// when each run of the signal handler was able to acquire the spinlock,
    	// with original timestamps corresponding to when ReadTrace pulled the data
    	// off of the profBuf queue. Re-sort them by the timestamp we captured
    	// inside the signal handler.
    	slices.SortFunc(p.cpuSamples, func(a, b Event) int {
    		return cmp.Compare(a.Ts, b.Ts)
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top