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 149742b commit 9e36df0Copy full SHA for 9e36df0
1 file changed
benchmark/sirun/profiler/index.js
@@ -17,6 +17,16 @@ if (PROFILER === 'space' || PROFILER === 'all') {
17
profilers.push(new SpaceProfiler())
18
}
19
20
+if (profilers.length === 0) {
21
+ // Add a no-op "profiler"
22
+ profilers.push({
23
+ start: () => {},
24
+ stop: () => {},
25
+ profile: () => { return true },
26
+ encode: () => { Promise.resolve(true) }
27
+ })
28
+}
29
+
30
const exporters = [{
31
export () {
32
profiler.stop()
0 commit comments