- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for pgo (0.02 sec)
-
src/cmd/go/testdata/script/build_pgo_auto.txt
# build succeeds without PGO when default.pgo file is absent go build -n -pgo=auto -o nopgo.exe ./nopgo stderr 'compile.*nopgo.go' ! stderr 'compile.*-pgoprofile' # check that pgo doesn't appear in build info ! stderr 'build\\t-pgo=' # other build-related commands go install -a -n -pgo=auto ./a/a1 stderr 'compile.*-pgoprofile=.*a1.go' go run -a -n -pgo=auto ./a/a1 stderr 'compile.*-pgoprofile=.*a1.go'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_pgo_auto_multi.txt
# Test go build -pgo=auto flag with multiple main packages. go install -a -n -pgo=auto ./a ./b ./nopgo # a/default.pgo and b/default.pgo are both preprocessed stderr 'preprofile.*-i.*a(/|\\\\)default\.pgo' stderr 'preprofile.*-i.*b(/|\\\\)default\.pgo' # a and b built once each with PGO. # Ideally we would check that the passed profile is the expected profile (here # and for dependencies). Unfortunately there is no nice way to map the expected
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:38:19 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_pgo_issue66218.txt
# Test that pgo properly splits off the Imports field so that list doesn't alias # the non-pgo variant's slice when it modifies the pgo variant's Imports field to # add the [.ForMain] suffix. go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b cmp stdout want -- want -- ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]" ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 615 bytes - Viewed (0) -
src/cmd/go/testdata/script/build_pgo.txt
# Test go build -pgo flag. # Specifically, the build cache handles profile content correctly. [short] skip 'compiles and links executables' # Set up fresh GOCACHE. env GOCACHE=$WORK/gocache mkdir $GOCACHE # build without PGO go build triv.go # build with PGO, should trigger rebuild # starting with an empty profile (the compiler accepts it) go build -x -pgo=prof -o triv.exe triv.go stderr 'preprofile.*-i.*prof'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_cache_pgo.txt
mkdir $GOCACHE # Building trivial non-main package should run preprofile the first time. go build -x -pgo=default.pgo lib.go stderr 'preprofile.*default\.pgo' # ... but not again ... go build -x -pgo=default.pgo lib.go ! stderr 'preprofile.*default\.pgo' # ... unless we use -a. go build -a -x -pgo=default.pgo lib.go stderr 'preprofile.*default\.pgo' # ... building a different package should not run preprofile again, instead
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 18:28:25 UTC 2024 - 927 bytes - Viewed (0) -
doc/next/5-toolchain.md
## Compiler {#compiler} The build time overhead to building with [Profile Guided Optimization](/doc/pgo) has been reduced significantly. Previously, large builds could see 100%+ build time increase from enabling PGO. In Go 1.23, overhead should be in the single digit percentages. <!-- https://go.dev/issue/62737 , https://golang.org/cl/576681, https://golang.org/cl/577615 --> The compiler in Go 1.23 can now overlap the stack frame slots of local variables
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:18:10 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/preprofile/main.go
// during PGO in the compiler. This transformation depends only on the profile // itself and is thus wasteful to perform in every invocation of the compiler. // // Usage: // // go tool preprofile [-v] [-o output] -i input // // package main import ( "bufio" "cmd/internal/objabi" "cmd/internal/pgo" "cmd/internal/telemetry" "flag" "fmt" "log" "os"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 1.9K bytes - Viewed (0) -
src/cmd/dist/buildtool.go
// Also ignore test files. var ignoreSuffixes = []string{ "_test.s", "_test.go", // Skip PGO profile. No need to build toolchain1 compiler // with PGO. And as it is not a text file the import path // rewrite will break it. ".pgo", // Skip editor backup files. "~", } var tryDirs = []string{ "sdk/go1.17", "go1.17", }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 23:29:41 UTC 2024 - 11.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/block.go
HotPgo // By PGO-based heuristics, this block occurs in a hot loop HotNot = 0 HotInitialNotFlowIn = HotInitial | HotNotFlowIn // typically first block of a rotated loop, loop is entered with a branch (not to this block). No PGO
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
return b.build(ctx, a) } // pgoActionID computes the action ID for a preprocess PGO action. func (b *Builder) pgoActionID(input string) cache.ActionID { h := cache.NewHash("preprocess PGO profile " + input) fmt.Fprintf(h, "preprocess PGO profile\n") fmt.Fprintf(h, "preprofile %s\n", b.toolID("preprofile")) fmt.Fprintf(h, "input %q\n", b.fileHash(input)) return h.Sum()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0)