MCPcopy Create free account
hub / github.com/google/pprof / Fetcher

Interface Fetcher

internal/plugin/plugin.go:92–94  ·  view source on GitHub ↗

A Fetcher reads and returns the profile named by src. src can be a local file path or a URL. duration and timeout are units specified by the end user, or 0 by default. duration refers to the length of the profile collection, if applicable, and timeout is the amount of time to wait for a profile befo

Source from the content-addressed store, hash-verified

90// fetched profile, the URL of the actual source of the profile, or an
91// error.
92type Fetcher interface {
93 Fetch(src string, duration, timeout time.Duration) (*profile.Profile, string, error)
94}
95
96// A Symbolizer introduces symbol information into a profile.
97type Symbolizer interface {

Callers

nothing calls this directly

Implementers 3

testFetcherinternal/driver/driver_test.go
testSymbolzMergeFetcherinternal/driver/driver_test.go
testFetcherbrowsertests/testutils.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…