Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for adjustURL (0.17 sec)

  1. 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)
  2. 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