Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for timeout (0.34 sec)

  1. src/cmd/pprof/pprof.go

    	// Get "http://abc:123/mem_2023-11-02_03:55:24": dial tcp: lookup abc: no such host`
    	if _, openErr := os.Stat(src); openErr == nil {
    		return nil, "", nil
    	}
    	sourceURL, timeout := adjustURL(src, duration, timeout)
    	if sourceURL == "" {
    		// Could not recognize URL, let regular pprof attempt to fetch the profile (eg. from a file)
    		return nil, "", nil
    	}
    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

    	var src string
    	duration, timeout := time.Duration(s.Seconds)*time.Second, time.Duration(s.Timeout)*time.Second
    	if fetcher != nil {
    		p, src, err = fetcher.Fetch(source, duration, timeout)
    		if err != nil {
    			return
    		}
    	}
    	if err != nil || p == nil {
    		// Fetch the profile over HTTP or from a file.
    		p, src, err = fetch(source, duration, timeout, ui, tr)
    		if err != nil {
    			return
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go

    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
    
    func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect6(nfd, r, w, e, ts, nil)
    }
    
    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go

    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
    
    func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect6(nfd, r, w, e, ts, nil)
    }
    
    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go

    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
    
    func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
    	var ts *Timespec
    	if timeout != nil {
    		ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
    	}
    	return pselect6(nfd, r, w, e, ts, nil)
    }
    
    //sys	sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go

    	// Source options.
    	flagSymbolize := flag.String("symbolize", "", "Options for profile symbolization")
    	flagBuildID := flag.String("buildid", "", "Override build id for first mapping")
    	flagTimeout := flag.Int("timeout", -1, "Timeout in seconds for fetching a profile")
    	flagAddComment := flag.String("add_comment", "", "Annotation string to record in the profile")
    	// CPU profile options
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. src/context/example_test.go

    	}
    
    	// Output:
    	// context deadline exceeded
    }
    
    // This example passes a context with a timeout to tell a blocking function that
    // it should abandon its work after the timeout elapses.
    func ExampleWithTimeout() {
    	// Pass a context with a timeout to tell a blocking function that it
    	// should abandon its work after the timeout elapses.
    	ctx, cancel := context.WithTimeout(context.Background(), shortDuration)
    	defer cancel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/testflag.go

    		}
    		switch short {
    		case "timeout":
    			timeoutSet = true
    		case "outputdir":
    			outputDirSet = true
    		}
    	})
    
    	// 'go test' has a default timeout, but the test binary itself does not.
    	// If the timeout wasn't set (and forwarded) explicitly, add the default
    	// timeout to the command line.
    	if testTimeout > 0 && !timeoutSet {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    }
    
    //sys	poll(fds *PollFd, nfds int, timeout int) (n int, err error)
    
    func Poll(fds []PollFd, timeout int) (n int, err error) {
    	if len(fds) == 0 {
    		return poll(nil, 0, timeout)
    	}
    	return poll(&fds[0], len(fds), timeout)
    }
    
    // TODO: wrap
    //	Acct(name nil-string) (err error)
    //	Gethostuuid(uuid *byte, timeout *Timespec) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  10. src/context/context.go

    //		defer cancel()  // releases resources if slowOperation completes before timeout elapses
    //		return slowOperation(ctx)
    //	}
    func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
    	return WithDeadline(parent, time.Now().Add(timeout))
    }
    
    // WithTimeoutCause behaves like [WithTimeout] but also sets the cause of the
    // returned Context when the timeout expires. The returned [CancelFunc] does
    // not set the cause.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
Back to top