( ctx context.Context, opts *benchOpts, dOpts *dumpOpts, )
| 170 | } |
| 171 | |
| 172 | func (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 | |
| 197 | type benchOpts struct { |
| 198 | runTestRegex string |
no test coverage detected