Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for captureStack (0.21 sec)

  1. src/runtime/mprof.go

    //
    //go:nowritebarrierrec
    func (prof *mLockProfile) recordUnlock(l *mutex) {
    	if uintptr(unsafe.Pointer(l)) == prof.pending {
    		prof.captureStack()
    	}
    	if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.cycles != 0 {
    		prof.store()
    	}
    }
    
    func (prof *mLockProfile) captureStack() {
    	if debug.profstackdepth == 0 {
    		// profstackdepth is set to 0 by the user, so mp.profStack is nil and we
    		// can't record a stack trace.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top