Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for trim_path (0.15 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/config.go

    		// Not saved in settings, but present in URLs.
    		"SampleIndex": "sample_index",
    
    		// Following fields are also not placed in URLs.
    		"Output":     "output",
    		"SourcePath": "source_path",
    		"TrimPath":   "trim_path",
    		"DivideBy":   "divide_by",
    	}
    
    	// choices holds the list of allowed values for config fields that can
    	// take on one of a bounded set of values.
    	choices := map[string][]string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/commands.go

    		"Using auto will scale each value independently to the most natural unit."),
    	"compact_labels": "Show minimal headers",
    	"source_path":    "Search path for source files",
    	"trim_path":      "Path to trim from source paths before search",
    	"intel_syntax": helpText(
    		"Show assembly in Intel syntax",
    		"Only applicable to commands `disasm` and `weblist`"),
    
    	// Filtering options
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    			}
    		}
    	}
    	// Trim configured trim prefixes.
    	trimPaths := append(filepath.SplitList(filepath.ToSlash(trimPath)), "/proc/self/cwd/./", "/proc/self/cwd/")
    	for _, trimPath := range trimPaths {
    		if !strings.HasSuffix(trimPath, "/") {
    			trimPath += "/"
    		}
    		if strings.HasPrefix(sPath, trimPath) {
    			return path[len(trimPath):]
    		}
    	}
    	return path
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/build_trimpath.txt

    # A binary built without -trimpath should contain the module root dir
    # and GOROOT for debugging and stack traces.
    cd $WORK/a/src/paths
    go build -o $WORK/paths-dbg.exe .
    exec $WORK/paths-dbg.exe $WORK/paths-dbg.exe
    stdout 'binary contains module root: true'
    stdout 'binary contains an empty GOROOT'
    
    # A binary built with -trimpath should not contain the current workspace.
    go build -trimpath -o $WORK/paths-a.exe .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_trimpath_goroot.txt

    # With GOROOT still set, 'go build' and 'go test -c'
    # should cause runtime.GOROOT() to report either the correct GOROOT
    # (without -trimpath) or no GOROOT at all (with -trimpath).
    
    go build -o example.exe .
    go build -trimpath -o example-trimpath.exe .
    go test -c -o example.test.exe .
    go test -trimpath -c -o example.test-trimpath.exe .
    
    env GOROOT=
    
    exec ./example.exe
    stdout '^GOROOT '$TESTGO_GOROOT'$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/goroot_executable_trimpath.txt

    # (using make.bash or similar). We can't make assumptions about what
    # options it may have been built with, such as -trimpath or not.
    # Instead, we build a fresh copy of the binary with known settings.
    go build -trimpath -o $WORK/new/bin/go$GOEXE cmd/go &
    go build -trimpath -o $WORK/bin/check$GOEXE check.go &
    wait
    
    env TESTGOROOT=$GOROOT
    env GOROOT=
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue22660.go

    	// path must appear in error messages even if we strip them with -trimpath
    	path := filepath.Join("users", "xxx", "go")
    	var src bytes.Buffer
    	fmt.Fprintf(&src, "//line %s:1\n", filepath.Join(path, "foo.go"))
    
    	if err := ioutil.WriteFile(f.Name(), src.Bytes(), 0660); err != nil {
    		log.Fatal(err)
    	}
    
    	out, err := exec.Command("go", "tool", "compile", "-p=p", fmt.Sprintf("-trimpath=%s", path), f.Name()).CombinedOutput()
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_plugin_reproducible.txt

    [!buildmode:plugin] skip
    [short] skip
    [!cgo] skip '-buildmode=plugin requires external linking'
    
    go build -trimpath -buildvcs=false -buildmode=plugin -o a.so main.go
    go build -trimpath -buildvcs=false -buildmode=plugin -o b.so main.go
    cmp -q a.so b.so
    
    -- main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:07:03 UTC 2024
    - 296 bytes
    - Viewed (0)
  9. buildscripts/cross-compile.sh

    	os="${arr[0]}"
    	arch="${arr[1]}"
    	package=$(go list -f '{{.ImportPath}}')
    	printf -- "--> %15s:%s\n" "${osarch}" "${package}"
    
    	# go build -trimpath to build the binary.
    	export GOOS=$os
    	export GOARCH=$arch
    	export GO111MODULE=on
    	go build -trimpath -tags kqueue -o /dev/null
    }
    
    function main() {
    	echo "Testing builds for OS/Arch: ${SUPPORTED_OSARCH}"
    	for each_osarch in ${SUPPORTED_OSARCH}; do
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Dec 19 01:08:22 UTC 2023
    - 958 bytes
    - Viewed (0)
  10. src/cmd/asm/internal/flags/flags.go

    	"strings"
    )
    
    var (
    	Debug      = flag.Bool("debug", false, "dump instructions as they are parsed")
    	OutputFile = flag.String("o", "", "output file; default foo.o for /a/b/c/foo.s as first argument")
    	TrimPath   = flag.String("trimpath", "", "remove prefix from recorded source file paths")
    	Shared     = flag.Bool("shared", false, "generate code that can be linked into a shared library")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:23 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top