- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for cpuprofile (0.17 sec)
-
src/cmd/go/testdata/script/cpu_profile_twice.txt
env GO111MODULE=off # Issue 23150 [short] skip go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x rm $WORK/cpu_profile_twice.out go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x exists $WORK/cpu_profile_twice.out -- x/x_test.go -- package x_test import ( "testing" "time" ) func TestSleep(t *testing.T) { time.Sleep(10 * time.Millisecond)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 19 19:57:03 UTC 2019 - 391 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_profile_flags.txt
stderr '^cannot use -coverprofile flag with -fuzz flag$' ! go test -fuzz=FuzzTrivial -blockprofile=prof ! stdout . stderr '^cannot use -blockprofile flag with -fuzz flag$' ! go test -fuzz=FuzzTrivial -cpuprofile=prof ! stdout . stderr '^cannot use -cpuprofile flag with -fuzz flag$' ! go test -fuzz=FuzzTrivial -memprofile=prof ! stdout . stderr '^cannot use -memprofile flag with -fuzz flag$' ! go test -fuzz=FuzzTrivial -mutexprofile=prof
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 02 18:01:20 UTC 2021 - 855 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_profile.txt
[compiler:gccgo] skip 'gccgo has no standard packages' [short] skip # Check go test -cpuprofile creates errors.test go test -cpuprofile errors.prof errors exists -exec errors.test$GOEXE # Check go test -cpuprofile -o myerrors.test creates errors.test go test -cpuprofile errors.prof -o myerrors.test$GOEXE errors exists -exec myerrors.test$GOEXE # Check go test -mutexprofile creates errors.test go test -mutexprofile errors.prof errors
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 637 bytes - Viewed (0) -
src/runtime/cpuprof.go
// or the handlers in the [net/http/pprof] package, // or the [testing] package's -test.cpuprofile flag instead. func CPUProfile() []byte { panic("CPUProfile no longer available") } // runtime/pprof.runtime_cyclesPerSecond should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.5K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
memProfile = flag.String("test.memprofile", "", "write a memory profile to the named file after execution") memProfileRate = flag.Int("test.memprofilerate", 0, "if >=0, sets runtime.MemProfileRate") cpuProfile = flag.String("test.cpuprofile", "", "write a cpu profile to the named file during execution") timeout = flag.Duration("test.timeout", 0, "if positive, sets an aggregate time limit for all tests")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/pgo/inline/inline_hot_test.go
// WARNING: Please avoid updating this file. If this file needs to be updated, // then a new inline_hot.pprof file should be generated: // // $ cd $GOROOT/src/cmd/compile/internal/test/testdata/pgo/inline/ // $ go test -bench=. -cpuprofile ./inline_hot.pprof package main import "testing" func BenchmarkA(b *testing.B) { benchmarkB(b) } func benchmarkB(b *testing.B) { for i := 0; true; { A() i = i + 1 if i >= b.N {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 04 21:20:22 UTC 2022 - 843 bytes - Viewed (0) -
src/cmd/go/internal/test/flagdefs.go
"benchtime": true, "blockprofile": true, "blockprofilerate": true, "count": true, "coverprofile": true, "cpu": true, "cpuprofile": true, "failfast": true, "fullpath": true, "fuzz": true, "fuzzminimizetime": true, "fuzztime": true, "list": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 2.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_write_profiles_on_timeout.txt
# Tests issue 19394 [short] skip ! go test -cpuprofile cpu.pprof -memprofile mem.pprof -timeout 1ms stdout '^panic: test timed out' grep . cpu.pprof grep . mem.pprof -- go.mod -- module profiling go 1.16 -- timeout_test.go -- package timeouttest_test import ( "testing" "time" ) func TestSleep(t *testing.T) { for { time.Sleep(1 * time.Second) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 04 17:47:28 UTC 2021 - 360 bytes - Viewed (0) -
src/cmd/compile/profile.sh
# the profile at cmd/compile/default.pgo. dir=$(mktemp -d) cd $dir seed=$(date) for p in $(go list std cmd); do h=$(echo $seed $p | md5sum | cut -d ' ' -f 1) echo $p $h go build -o /dev/null -gcflags=-cpuprofile=$PWD/prof.$h $p done go tool pprof -proto prof.* > $(go env GOROOT)/src/cmd/compile/default.pgo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 17:31:10 UTC 2023 - 588 bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
flagPruneWeakMap = flag.Bool("pruneweakmap", true, "prune weak mapinit refs") flagRandLayout = flag.Int64("randlayout", 0, "randomize function layout") cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`") memprofile = flag.String("memprofile", "", "write memory profile to `file`") memprofilerate = flag.Int64("memprofilerate", 0, "set runtime.MemProfileRate to `rate`")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0)