We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b915b4f commit bf7fc8bCopy full SHA for bf7fc8b
packages/tinybench-plugin/src/instrumented.ts
@@ -48,10 +48,14 @@ class InstrumentedBenchRunner extends BaseBenchRunner {
48
await mongoMeasurement.start(uri);
49
50
global.gc?.();
51
- await this.wrapWithInstrumentHooksAsync(
52
- this.wrapFunctionWithFrame(fn, true),
53
- uri
+ this.wrapFunctionWithFrame(
+ () => this.wrapWithInstrumentHooksAsync(fn, uri),
+ true
54
);
55
+ // await this.wrapWithInstrumentHooksAsync(
56
+ // this.wrapFunctionWithFrame(fn, true),
57
+ // uri
58
+ // );
59
60
await mongoMeasurement.stop(uri);
61
await fnOpts?.afterEach?.call(task, "run");
0 commit comments