Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for adjustErr (0.21 sec)

  1. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    		a, err := doDemangle(name[2:], options...)
    		return a, adjustErr(err, 2)
    	}
    
    	if strings.HasPrefix(name, "___Z") {
    		// clang extensions
    		block := strings.LastIndex(name, "_block_invoke")
    		if block == -1 {
    			return nil, ErrNotMangledName
    		}
    		a, err := doDemangle(name[4:block], options...)
    		if err != nil {
    			return a, adjustErr(err, 4)
    		}
    		name = strings.TrimPrefix(name[block:], "_block_invoke")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  2. src/cmd/pprof/pprof.go

    	return fmt.Errorf("server response: %s", resp.Status)
    }
    
    // cpuProfileHandler is the Go pprof CPU profile handler URL.
    const cpuProfileHandler = "/debug/pprof/profile"
    
    // adjustURL applies the duration/timeout values and Go specific defaults.
    func adjustURL(source string, duration, timeout time.Duration) (string, time.Duration) {
    	u, err := url.Parse(source)
    	if err != nil || (u.Host == "" && u.Scheme != "" && u.Scheme != "file") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    	}
    	return profile, nil
    }
    
    // adjustURL validates if a profile source is a URL and returns an
    // cleaned up URL and the timeout to use for retrieval over HTTP.
    // If the source cannot be recognized as a URL it returns an empty string.
    func adjustURL(source string, duration, timeout time.Duration) (string, time.Duration) {
    	u, err := url.Parse(source)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top