Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for pgo (0.02 sec)

  1. src/cmd/internal/pgo/pgo.go

    // license that can be found in the LICENSE file.
    
    // Package pgo contains the compiler-agnostic portions of PGO profile handling.
    // Notably, parsing pprof profiles and serializing/deserializing from a custom
    // intermediate representation.
    package pgo
    
    // Profile contains the processed data from the PGO profile.
    type Profile struct {
    	// TotalWeight is the aggregated edge weights across the profile. This
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/pgo/inline/inline_hot.pprof.node_map

    GO PREPROFILE V1
    example.com/pgo/inline.A
    example.com/pgo/inline.(*BS).NS
    7 129
    example.com/pgo/inline.(*BS).NS
    example.com/pgo/inline.T
    8 3
    example.com/pgo/inline.(*BS).NS
    example.com/pgo/inline.T
    13 2
    example.com/pgo/inline.benchmarkB
    example.com/pgo/inline.A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 267 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.pprof.node_map

    GO PREPROFILE V1
    example.com/pgo/devirtualize.ExerciseFuncConcrete
    example.com/pgo/devirtualize.AddFn
    48 103
    example.com/pgo/devirtualize.ExerciseFuncField
    example.com/pgo/devirtualize.AddFn
    23 101
    example.com/pgo/devirtualize.ExerciseFuncField
    example.com/pgo/devirtualize/mult%2epkg.MultFn
    23 94
    example.com/pgo/devirtualize.ExerciseFuncClosure
    example.com/pgo/devirtualize/mult%2epkg.MultClosure.func1
    18 93
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    	}
    
    	// Run test with PGO to ensure the assertions are still true.
    	cmd = testenv.CleanCmdEnv(testenv.Command(t, out))
    	cmd.Dir = dir
    	b, err = cmd.CombinedOutput()
    	t.Logf("Test with PGO:\n%s", b)
    	if err != nil {
    		t.Fatalf("Test failed without PGO: %v", err)
    	}
    }
    
    // TestPGODevirtualize tests that specific functions are devirtualized when PGO
    // is applied to the exact source that was profiled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/pgo_inl_test.go

    	return err
    }
    
    // TestPGOHash tests that PGO optimization decisions can be selected by pgohash.
    func TestPGOHash(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	const pkg = "example.com/pgo/inline"
    
    	wd, err := os.Getwd()
    	if err != nil {
    		t.Fatalf("error getting wd: %v", err)
    	}
    	srcDir := filepath.Join(wd, "testdata/pgo/inline")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top