Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //("benchmark", "Run benchmarks of provider test programs and compare with recorded values") BenchmarkFlag = hardcodedFlag{/* contains filtered or unexported fields */} //("record-benchmark", "Run benchmarks of provider test programs and record results") RecordBenchmarkFlag = hardcodedFlag{/* contains filtered or unexported fields */} )
providertest doesn't expose a real flags implementation, so just pretend for now
Functions ¶
func Provider ¶
func Provider() tfbridge.ProviderInfo
Provider returns additional overlaid schema and metadata associated with the gcp package.
func RunBenchmark ¶
func RunBenchmark(t *testing.T, bench BenchmarkConfig)
Runs a benchmark test using the provider BenchmarkConfig
Types ¶
type BenchmarkConfig ¶
type BenchmarkConfig struct { // Name of the benchmark (normally use the folder name) Name string // Location of the program to benchmark ProgramDir string // Primary provider (such as aws) the benchmark is testing Provider string // Primary runtime set in Pulumi.yaml Runtime string // Main programming language in the benchmark Language string // Repository where the benchmark is found, such as `pulumi/templates` Repository string // How often to sample memory stats MemstatsPollInterval time.Duration // Where to store traces TracingDir string // Where to store Benchmark results RecordDir string // How many times to run the benchmark and collect traces Samples int // Extra ProgramTestOptions Options integration.ProgramTestOptions }
Configuration for a benchmark used for tracking performance with `pulumi --tracing`.
func NewBenchmark ¶
func NewBenchmark(name, provider, runtime, lang, repo string) BenchmarkConfig
Helper for configuring a Benchmark test with defaults
func (*BenchmarkConfig) Env ¶
func (b *BenchmarkConfig) Env() []string
Computes a list of `K=V` environment variables that will inform `pulumi --tracing` how to tag the data it produces.
func (*BenchmarkConfig) PrewarmProgramTestOptions ¶
func (b *BenchmarkConfig) PrewarmProgramTestOptions() integration.ProgramTestOptions
Options for a warm up run that ensures plugins are downloaded
func (*BenchmarkConfig) TracingProgramTestOptions ¶
func (b *BenchmarkConfig) TracingProgramTestOptions() integration.ProgramTestOptions
Ensures `ProgramTest` uses appropriate `--tracing` options.
type CsvFileSpanIter ¶
type CsvFileSpanIter struct {
File string
}
Iterates over spans stored in CSV format
type MultiSpanIter ¶
type MultiSpanIter struct {
Iters []SpanIter
}
Convenience type for iterating over multiple SpanIters in sequence
type TraceDirSpanIter ¶
type TraceDirSpanIter struct {
// contains filtered or unexported fields
}
Iterate over spans from all .trace files in a directory
type TraceFileSpanIter ¶
type TraceFileSpanIter struct {
File string
}
Iterates over spans stored in appDash's trace file format