MCPcopy Index your code
hub / github.com/dagger/dagger / benchDump

Method benchDump

toolchains/engine-dev/bench.go:172–195  ·  view source on GitHub ↗
(
	ctx context.Context,
	opts *benchOpts,
	dOpts *dumpOpts,
)

Source from the content-addressed store, hash-verified

170}
171
172func (dev *EngineDev) benchDump(
173 ctx context.Context,
174 opts *benchOpts,
175 dOpts *dumpOpts,
176) (*dagger.Directory, error) {
177 ctr, debugEndpoint, err := dev.testContainer(ctx, nil)
178 if err != nil {
179 return nil, err
180 }
181 ctr = dev.test(ctx, ctr, &testOpts{
182 runTestRegex: opts.runTestRegex,
183 skipTestRegex: opts.skipTestRegex,
184 pkg: opts.pkg,
185 failfast: opts.failfast,
186 parallel: 0,
187 timeout: opts.timeout,
188 race: opts.race,
189 count: opts.count,
190 update: false,
191 testVerbose: opts.testVerbose,
192 bench: true,
193 })
194 return dev.pprofDump(ctx, ctr, debugEndpoint, dOpts)
195}
196
197type benchOpts struct {
198 runTestRegex string

Callers 1

BenchmarkDumpMethod · 0.95

Calls 3

testContainerMethod · 0.95
testMethod · 0.95
pprofDumpMethod · 0.95

Tested by

no test coverage detected