Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Akatroj opened this issue Dec 11, 2021 · 3 comments
Open

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

Akatroj opened this issue Dec 11, 2021 · 3 comments

Comments

@Akatroj
Copy link

Akatroj commented Dec 11, 2021

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

@Rivera-Emmanuel
Copy link

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

@ArtemGovorov
Copy link
Member

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

@Rivera-Emmanuel
Copy link

Rivera-Emmanuel commented Feb 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants