Skip to content

Commit

Permalink
Fix control case for the profiler benchmark (#5108)
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi authored Jan 14, 2025
1 parent 149742b commit 9e36df0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions benchmark/sirun/profiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ if (PROFILER === 'space' || PROFILER === 'all') {
profilers.push(new SpaceProfiler())
}

if (profilers.length === 0) {
// Add a no-op "profiler"
profilers.push({
start: () => {},
stop: () => {},
profile: () => { return true },
encode: () => { Promise.resolve(true) }
})
}

const exporters = [{
export () {
profiler.stop()
Expand Down

0 comments on commit 9e36df0

Please sign in to comment.