Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Type is the diagnostic to collect data for. Type // Flags is additional opaque configuration for data collection. // // Currently only used if Type == Perf. Flags string }
Config is an intent to collect data for some diagnostic with some room for additional configuration as to how that data is collected.
func ParseConfig ¶
ParseConfig derives a Config from a string. The string must take the form
<type>[=<flags>]
where [=<flags>] is only accepted if <type> is perf.
type ConfigSet ¶
type ConfigSet struct {
// contains filtered or unexported fields
}
ConfigSet is an immutable set of Config, containing at most one Config of each supported type.
func (*ConfigSet) Clear ¶
Clear removes the Config with the provided Type from the ConfigSet, if applicable.
func (ConfigSet) Get ¶
Get looks up the Config with the provided Type and returns it if it exists with the second result indicating presence.
func (ConfigSet) Strings ¶
Strings returns the set of ConfigSet as strings by calling the String method on each Config.
func (*ConfigSet) UnmarshalTOML ¶
UnmarshalTOML implements TOML unmarshaling for ConfigSet.
type DriverConfig ¶
DriverConfig is a diagnostics configuration that can be passed to a benchmark driver by serializing to and from command-line flags.
func (*DriverConfig) AddFlags ¶
func (c *DriverConfig) AddFlags(f *flag.FlagSet)
AddFlags populates f with flags that will fill in c.
func (*DriverConfig) DriverArgs ¶
func (c *DriverConfig) DriverArgs() []string
DriverArgs returns the arguments that should be passed to a Sweet benchmark binary to collect data for c.
type Type ¶
type Type string
Type is a diagnostic type supported by Sweet.
func (Type) CanMerge ¶
CanMerge indicates that multiple profiles of this type can be merged into one profile.
func (Type) CanTruncate ¶
CanTruncate indicates that a truncated diagnostic file of this type is still meaningful.
func (Type) HTTPEndpoint ¶
HTTPEndpoint returns the net/http/pprof endpoint for this diagnostic type as a host-relative URL, or "" if there is no enpdoint.
func (Type) IsSnapshot ¶
IsSnapshot indicates that this diagnostic is a point-in-time snapshot that should be collected at the end of a benchmark.