Skip to content

Commit

Permalink
Fix control case for the profiler benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi committed Jan 14, 2025
1 parent 708b627 commit d103790
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) }
});

Check failure on line 27 in benchmark/sirun/profiler/index.js

View workflow job for this annotation

GitHub Actions / lint

Extra semicolon
}

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

0 comments on commit d103790

Please sign in to comment.