Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for pgo (0.07 sec)

  1. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt_test.go

    // then a new devirt.pprof file should be generated:
    //
    //	$ cd $GOROOT/src/cmd/compile/internal/test/testdata/pgo/devirtualize/
    //	$ go mod init example.com/pgo/devirtualize
    //	$ go test -bench=. -cpuprofile ./devirt.pprof
    
    package devirt
    
    import (
    	"testing"
    
    	"example.com/pgo/devirtualize/mult.pkg"
    )
    
    func BenchmarkDevirtIface(b *testing.B) {
    	var (
    		a1 Add
    		a2 Sub
    		m1 mult.Mult
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:47 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/internal/pgo/pprof.go

    // Use of this source code is governed by a BSD-style
    // 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
    
    import (
    	"errors"
    	"fmt"
    	"internal/profile"
    	"io"
    	"sort"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.go

    // WARNING: Please avoid updating this file. If this file needs to be updated,
    // then a new devirt.pprof file should be generated:
    //
    //	$ cd $GOROOT/src/cmd/compile/internal/test/testdata/pgo/devirtualize/
    //	$ go mod init example.com/pgo/devirtualize
    //	$ go test -bench=. -cpuprofile ./devirt.pprof
    
    package devirt
    
    // Devirtualization of callees from transitive dependencies should work even if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. 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; {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 21:20:22 UTC 2022
    - 843 bytes
    - Viewed (0)
  7. src/cmd/internal/pgo/serialize.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pgo
    
    import (
    	"bufio"
    	"fmt"
    	"io"
    )
    
    // Serialization of a Profile allows go tool preprofile to construct the edge
    // map only once (rather than once per compile process). The compiler processes
    // then parse the pre-processed data directly from the serialized format.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/pgo/inline/inline_hot.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 (
    	"time"
    )
    
    type BS struct {
    	length uint
    	s      []uint64
    }
    
    const wSize = uint(64)
    const lWSize = uint(6)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 21:20:22 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/internal/pgo/deserialize.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pgo
    
    import (
    	"bufio"
    	"fmt"
    	"io"
    	"strings"
    	"strconv"
    )
    
    // IsSerialized returns true if r is a serialized Profile.
    //
    // IsSerialized only peeks at r, so seeking back after calling is not
    // necessary.
    func IsSerialized(r *bufio.Reader) (bool, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/cmd/internal/pgo/serialize_test.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package pgo
    
    import (
    	"bytes"
    	"encoding/binary"
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    // equal returns an error if got and want are not equal.
    func equal(got, want *Profile) error {
    	if got.TotalWeight != want.TotalWeight {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top