Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/runtime/pprof/pprof_test.go

    	testCPUProfile(t, matches, func(duration time.Duration) {
    		t := time.After(duration)
    		c := make(chan bool)
    		for {
    			go func() {
    				growstack1()
    				c <- true
    			}()
    			select {
    			case <-t:
    				return
    			case <-c:
    			}
    		}
    	})
    }
    
    //go:noinline
    func growstack1() {
    	growstack(10)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    				// saveblockevent)
    				mp.profStack[0] -= 1
    			}
    			nstk += fpTracebackPCs(unsafe.Pointer(getfp()), mp.profStack[1:])
    		} else {
    			mp.profStack[1] = gp.m.curg.sched.pc
    			nstk += 1 + fpTracebackPCs(unsafe.Pointer(gp.m.curg.sched.bp), mp.profStack[2:])
    		}
    	}
    
    	saveBlockEventStack(cycles, rate, mp.profStack[:nstk], which)
    	releasem(mp)
    }
    
    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