Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for traceShuttingDown (0.25 sec)

  1. src/runtime/trace.go

    // Most clients should use the [runtime/trace] package or the [testing] package's
    // -test.trace flag instead of calling StartTrace directly.
    func StartTrace() error {
    	if traceEnabled() || traceShuttingDown() {
    		return errorString("tracing is already enabled")
    	}
    	// Block until cleanup of the last trace is done.
    	semacquire(&traceShutdownSema)
    	semrelease(&traceShutdownSema)
    
    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/runtime/traceruntime.go

    // and alloc/free events are also enabled.
    //
    //go:nosplit
    func traceAllocFreeEnabled() bool {
    	return trace.enabledWithAllocFree
    }
    
    // traceShuttingDown returns true if the trace is currently shutting down.
    func traceShuttingDown() bool {
    	return trace.shutdown.Load()
    }
    
    // traceLocker represents an M writing trace events. While a traceLocker value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    			}
    			// Drop any remaining trace resources.
    			// Ms can continue to emit events all the way until wait != freeMWait,
    			// so it's only safe to call traceThreadDestroy at this point.
    			if traceEnabled() || traceShuttingDown() {
    				traceThreadDestroy(freem)
    			}
    			// Free the stack if needed. For freeMRef, there is
    			// nothing to do except drop freem from the sched.freem
    			// list.
    			if wait == freeMStack {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top