We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fa17e commit 5c7701aCopy full SHA for 5c7701a
packages/tinybench-plugin/src/index.ts
@@ -4,6 +4,8 @@ import {
4
mongoMeasurement,
5
optimizeFunction,
6
setupCore,
7
+ StartInstrumentsRequestBody,
8
+ StartInstrumentsResponse,
9
teardownCore,
10
tryIntrospect,
11
} from "@codspeed/core";
@@ -101,3 +103,12 @@ function getCallingFile(): string {
101
103
}
102
104
return path.relative(gitDir, callingFile);
105
106
+
107
+/**
108
+ * Dynamically starts the CodSpeed instruments.
109
+ */
110
+export async function startInstruments(
111
+ body: StartInstrumentsRequestBody
112
+): Promise<StartInstrumentsResponse> {
113
+ return await mongoMeasurement.startInstruments(body);
114
+}
0 commit comments