- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestCPUProfile (0.15 sec)
-
src/runtime/pprof/pprof_test.go
func avoidFunctions() []string { if runtime.Compiler == "gccgo" { return []string{"runtime.sigprof"} } return nil } func TestCPUProfile(t *testing.T) { matches := matchAndAvoidStacks(stackContains, []string{"runtime/pprof.cpuHog1"}, avoidFunctions()) testCPUProfile(t, matches, func(dur time.Duration) { cpuHogger(cpuHog1, &salt1, dur) }) } func TestCPUProfileMultithreaded(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
testCacheExpire time.Time // ignore cached test results before this time testShouldFailFast atomic.Bool // signals pending tests to fail fast testBlockProfile, testCPUProfile, testMemProfile, testMutexProfile, testTrace string // profiling flag that limits test to one package testODir = false ) // testProfile returns the name of an arbitrary single-package profiling flag
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0)