func main() { var extraCommands map[string]*commands.Command // no added Go-specific commands if err := driver.PProf(flags{}, fetch.Fetcher, symbolize, new(objTool), plugin.StandardUI(), extraCommands); err != nil { fmt.Fprintf(os.Stderr, "%v\n", err) os.Exit(2) } }
// FetchProfile reads from a data source (network, file) and generates a // profile. func FetchProfile(source string, timeout time.Duration) (*profile.Profile, error) { return Fetcher(source, timeout, plugin.StandardUI()) }