File tree 1 file changed +2
-2
lines changed
src/vs/workbench/services/timer/browser
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ export abstract class AbstractTimerService implements ITimerService {
519
519
// we use fibonacci numbers to have a performance baseline that indicates
520
520
// how slow/fast THIS machine actually is.
521
521
522
- const jsSrc = ( function computeBaseline ( this : WindowOrWorkerGlobalScope ) {
522
+ const jsSrc = ( function ( this : WindowOrWorkerGlobalScope ) {
523
523
// the following operation took ~16ms (one frame at 64FPS) to complete on my machine. We derive performance observations
524
524
// from that. We also bail if that took too long (>1s)
525
525
let tooSlow = false ;
@@ -543,7 +543,7 @@ export abstract class AbstractTimerService implements ITimerService {
543
543
544
544
} ) . toString ( ) ;
545
545
546
- const blob = new Blob ( [ `${ jsSrc } ;\ncomputeBaseline ();` ] , { type : 'application/javascript' } ) ;
546
+ const blob = new Blob ( [ `( ${ jsSrc } ) ();` ] , { type : 'application/javascript' } ) ;
547
547
const blobUrl = URL . createObjectURL ( blob ) ;
548
548
549
549
const worker = createBlobWorker ( blobUrl , { name : 'perfBaseline' } ) ;
You can’t perform that action at this time.
0 commit comments