Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pprofStacks (0.12 sec)

  1. src/internal/trace/testdata/testprog/cpu-profile.go

    			case "runtime._System", "runtime._GC", "runtime._ExternalCode", "runtime._VDSO":
    				continue
    			}
    			stack := strings.Join(fns, "|")
    			samples := int(s.Value[0])
    			pprofStacks[stack] += samples
    		}
    	}
    	for stack, samples := range pprofStacks {
    		fmt.Fprintf(os.Stderr, "%s\t%d\n", stack, samples)
    	}
    }
    
    func cpuHogger(f func(x int) int, y *int, dur time.Duration) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/internal/trace/trace_test.go

    			pprofSamples := pprofStacks[stack]
    			delete(pprofStacks, stack)
    			if traceSamples < pprofSamples {
    				t.Logf("execution trace did not include all CPU profile samples for stack %q; %d in profile, %d in trace",
    					stack, pprofSamples, traceSamples)
    				if !overflowed {
    					t.Fail()
    				}
    			}
    		}
    		for stack, pprofSamples := range pprofStacks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	// safe to set MemProfileRate to 0.
    	if disableMemoryProfiling {
    		MemProfileRate = 0
    	}
    
    	// mcommoninit runs before parsedebugvars, so init profstacks again.
    	mProfStackInit(gp.m)
    
    	lock(&sched.lock)
    	sched.lastpoll.Store(nanotime())
    	procs := ncpu
    	if n, ok := atoi32(gogetenv("GOMAXPROCS")); ok && n > 0 {
    		procs = n
    	}
    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