package fetch
import "cmd/pprof/internal/fetch"
Package fetch provides an extensible mechanism to fetch a profile from a data source.
Index ¶
- func FetchProfile(source string, timeout time.Duration) (*profile.Profile, error)
- func FetchURL(source string, timeout time.Duration) (io.ReadCloser, error)
- func Fetcher(source string, timeout time.Duration, ui plugin.UI) (*profile.Profile, error)
- func PostURL(source, post string) ([]byte, error)
Functions ¶
func FetchProfile ¶
FetchProfile reads from a data source (network, file) and generates a profile.
func FetchURL ¶
FetchURL fetches a profile from a URL using HTTP.
func Fetcher ¶
Fetcher is the plugin.Fetcher version of FetchProfile.
func PostURL ¶
PostURL issues a POST to a URL over HTTP.
Source Files ¶
- Version
- v1.4.3
- Published
- Sep 23, 2015
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 4 minutes ago –
Tools for package owners.