Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for trim_path (0.25 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/mod_build_trimpath_issue48557.txt

    # ID for (and other contents of) a binary built with -trimpath in module mode
    # should not depend on its working directory, even if the binary is specified as
    # a list of relative source files.
    
    [short] skip  # links and runs binaries
    
    env GOFLAGS=-trimpath
    env GOCACHE=$WORK/gocache
    
    
    # When we build a binary in module mode with -trimpath, the -D flag (for the
    # "local import prefix") should not be passed to it.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 16:46:09 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/link_matching_actionid.txt

    # source files, with GOROOT in two different locations.
    # Verifies golang.org/issue/38989
    
    [short] skip
    [!symlink] skip
    
    # Symlink the compiler to a local path
    env GOROOT=$WORK/goroot1
    symlink $GOROOT -> $TESTGO_GOROOT
    
    # Set up fresh GOCACHE
    env GOCACHE=$WORK/gocache1
    mkdir $GOCACHE
    
    # Build a simple binary
    go build -o binary1 -trimpath -x main.go
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 14:18:11 UTC 2020
    - 835 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_trimpath_cgo.txt

    [short] skip
    [!cgo] skip
    
    # Check that the source path appears when -trimpath is not used.
    go build -o hello.exe .
    grep -q gopath[/\\]src hello.exe
    go run ./list-dwarf hello.exe
    stdout gopath[/\\]src
    
    # Check that the source path does not appear when -trimpath is used.
    [GOOS:aix] stop # can't inspect XCOFF binaries
    go build -trimpath -o hello.exe .
    ! grep -q gopath[/\\]src hello.exe
    go run ./list-dwarf hello.exe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_vendor_trimpath.txt

    # Check that when -trimpath and -mod=vendor are used together,
    # paths in vendored packages are properly trimmed.
    # Verifies golang.org/issue/36566.
    
    [short] skip
    
    # Only the main module has a root directory in vendor mode.
    go mod vendor
    go list -f {{.Module.Dir}} example.com/main
    stdout $PWD
    go list -f {{.Module.Dir}} example.com/stack
    ! stdout .
    
    # The program prints a file name from a vendored package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 13 00:19:50 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  10. 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)
Back to top