quokka icon indicating copy to clipboard operation
quokka copied to clipboard

Live Value Display does not work with console.time()

Open Akatroj opened this issue 3 years ago • 3 comments

Issue description or question

The PRO feature 'Live Value Display' does not display the measured time when using console.timeEnd(). I also noticed the same problem when printing with console.error(). I expected these would work just like console.logging a variable, which shows the result inline in the editor.

Is this issue related to Quokka not outputting the expected results of your code?: Yes

Sample code

console.time('test');
  setTimeout(() => {
    console.timeEnd('test');
  }, 100);

Quokka.js Console Output

The result appears in the console but not in the editor.

test: 116.398ms 

Code editor version

Visual Studio Code v1.63

OS name and version

Windows10 21H1

Akatroj avatar Dec 11 '21 18:12 Akatroj

I really need this. Even better if we can view the console.time() output without typing it.

Rivera-Emmanuel avatar Feb 26 '22 00:02 Rivera-Emmanuel

@Rivera-Emmanuel Check out our Live Performance testing feature, it allows to measure execution time via a simple comment:

ArtemGovorov avatar Feb 28 '22 01:02 ArtemGovorov

Wow! This is amazing. Thank you. This makes my wallaby and quokka pro membership even sweeter.

Rivera-Emmanuel avatar Feb 28 '22 17:02 Rivera-Emmanuel