func cpuHogger(f func(x int) int, y *int, dur time.Duration) { … }
var salt1 …
var salt2 …
func cpuHog1(x int) int { … }
func cpuHog0(x, n int) int { … }
func cpuHog2(x int) int { … }
func avoidFunctions() []string { … }
func TestCPUProfile(t *testing.T) { … }
func TestCPUProfileMultithreaded(t *testing.T) { … }
func TestCPUProfileMultithreadMagnitude(t *testing.T) { … }
func containsInlinedCall(f any, maxBytes int) bool { … }
func findInlinedCall(f any, maxBytes int) (pc uint64, found bool) { … }
func TestCPUProfileInlining(t *testing.T) { … }
func inlinedCaller(x int) int { … }
func inlinedCallee(x, n int) int { … }
func dumpCallers(pcs []uintptr) { … }
func inlinedCallerDump(pcs []uintptr) { … }
func inlinedCalleeDump(pcs []uintptr) { … }
type inlineWrapperInterface …
type inlineWrapper …
func (h inlineWrapper) dump(pcs []uintptr) { … }
func inlinedWrapperCallerDump(pcs []uintptr) { … }
func TestCPUProfileRecursion(t *testing.T) { … }
func recursionCaller(x int) int { … }
func recursionCallee(n, x int) int { … }
func recursionChainTop(x int, pcs []uintptr) { … }
func recursionChainMiddle(x int, pcs []uintptr) { … }
func recursionChainBottom(x int, pcs []uintptr) { … }
func parseProfile(t *testing.T, valBytes []byte, f func(uintptr, []*profile.Location, map[string][]string)) *profile.Profile { … }
func cpuProfilingBroken() bool { … }
func testCPUProfile(t *testing.T, matches profileMatchFunc, f func(dur time.Duration)) *profile.Profile { … }
var diffCPUTimeImpl …
func diffCPUTime(t *testing.T, f func()) (user, system time.Duration) { … }
func stackContains(spec string, count uintptr, stk []*profile.Location, labels map[string][]string) bool { … }
type sampleMatchFunc …
func profileOk(t *testing.T, matches profileMatchFunc, prof bytes.Buffer, duration time.Duration) (_ *profile.Profile, ok bool) { … }
type profileMatchFunc …
func matchAndAvoidStacks(matches sampleMatchFunc, need []string, avoid []string) profileMatchFunc { … }
func TestCPUProfileWithFork(t *testing.T) { … }
func TestGoroutineSwitch(t *testing.T) { … }
func fprintStack(w io.Writer, stk []*profile.Location) { … }
func TestMathBigDivide(t *testing.T) { … }
func stackContainsAll(spec string, count uintptr, stk []*profile.Location, labels map[string][]string) bool { … }
func TestMorestack(t *testing.T) { … }
func growstack1() { … }
func growstack(n int) { … }
func use(x [8 << 18]byte) { … }
func TestBlockProfile(t *testing.T) { … }
func profileStacks(p *profile.Profile) (res [][]string) { … }
func blockRecordStacks(records []runtime.BlockProfileRecord) (res [][]string) { … }
func containsStack(got [][]string, want []string) bool { … }
func awaitBlockedGoroutine(t *testing.T, state, fName string, count int) { … }
func blockChanRecv(t *testing.T) { … }
func blockChanSend(t *testing.T) { … }
func blockChanClose(t *testing.T) { … }
func blockSelectRecvAsync(t *testing.T) { … }
func blockSelectSendSync(t *testing.T) { … }
func blockMutex(t *testing.T) { … }
func blockMutexN(t *testing.T, n int, d time.Duration) { … }
func blockCond(t *testing.T) { … }
func TestBlockProfileBias(t *testing.T) { … }
func blockFrequentShort(rate int) { … }
func blockInfrequentLong(rate int) { … }
func blockevent(cycles int64, skip int)
func TestMutexProfile(t *testing.T) { … }
func TestMutexProfileRateAdjust(t *testing.T) { … }
func func1(c chan int) { … }
func func2(c chan int) { … }
func func3(c chan int) { … }
func func4(c chan int) { … }
func TestGoroutineCounts(t *testing.T) { … }
func containsInOrder(s string, all ...string) bool { … }
func containsCountsLabels(prof *profile.Profile, countLabels map[int64]map[string]string) bool { … }
func TestGoroutineProfileConcurrency(t *testing.T) { … }
func TestGoroutineProfileCoro(t *testing.T) { … }
func BenchmarkGoroutine(b *testing.B) { … }
var emptyCallStackTestRun …
func TestEmptyCallStack(t *testing.T) { … }
func stackContainsLabeled(spec string, count uintptr, stk []*profile.Location, labels map[string][]string) bool { … }
func TestCPUProfileLabel(t *testing.T) { … }
func TestLabelRace(t *testing.T) { … }
func TestGoroutineProfileLabelRace(t *testing.T) { … }
func TestLabelSystemstack(t *testing.T) { … }
func labelHog(stop chan struct{ … }
func parallelLabelHog(ctx context.Context, dur time.Duration, gogc int) { … }
func TestAtomicLoadStore64(t *testing.T) { … }
func TestTracebackAll(t *testing.T) { … }
func TestTryAdd(t *testing.T) { … }
func TestTimeVDSO(t *testing.T) { … }
func TestProfilerStackDepth(t *testing.T) { … }
func hasPrefix(stk []string, prefix []string) bool { … }
var _ …
var _ …
func allocDeep(n int) { … }
func blockChanDeep(t *testing.T, n int) { … }
func blockMutexDeep(t *testing.T, n int) { … }
func goroutineDeep(t *testing.T, n int) { … }
func produceProfileEvents(t *testing.T, depth int) { … }
func getProfileStacks(collect func([]runtime.BlockProfileRecord) (int, bool), fileLine bool) []string { … }
func TestMutexBlockFullAggregation(t *testing.T) { … }
func inlineA(mu *sync.Mutex, wg *sync.WaitGroup) { … }
func inlineB(mu *sync.Mutex, wg *sync.WaitGroup) { … }
func inlineC(mu *sync.Mutex, wg *sync.WaitGroup) { … }
func inlineD(mu *sync.Mutex, wg *sync.WaitGroup) { … }
func inlineE(mu *sync.Mutex, wg *sync.WaitGroup) { … }
func inlineF(mu *sync.Mutex, wg *sync.WaitGroup) { … }
func TestBlockMutexProfileInlineExpansion(t *testing.T) { … }
func TestProfileRecordNullPadding(t *testing.T) { … }
func testProfileRecordNullPadding[T runtime.StackRecord | runtime.MemProfileRecord | runtime.BlockProfileRecord](t *testing.T, name string, fn func([]T) (int, bool)) { … }
func disableSampling() func() { … }