package fetch

import "cmd/pprof/internal/fetch"

Package fetch provides an extensible mechanism to fetch a profile from a data source.

Index

Functions

func FetchProfile

func FetchProfile(source string, timeout time.Duration) (*profile.Profile, error)

FetchProfile reads from a data source (network, file) and generates a profile.

func FetchURL

func FetchURL(source string, timeout time.Duration) (io.ReadCloser, error)

FetchURL fetches a profile from a URL using HTTP.

func Fetcher

func Fetcher(source string, timeout time.Duration, ui plugin.UI) (*profile.Profile, error)

Fetcher is the plugin.Fetcher version of FetchProfile.

func PostURL

func PostURL(source, post string) ([]byte, error)

PostURL issues a POST to a URL over HTTP.

Source Files

fetch.go

Version
v1.6.1
Published
Apr 12, 2016
Platform
js/wasm
Imports
10 packages
Last checked
13 seconds ago

Tools for package owners.