njzydark / vscode-stats-bar

A vscode extension to show system stats in status bar
https://marketplace.visualstudio.com/items?itemName=njzy.stats-bar
MIT License
40 stars 3 forks source link

UNRESPONSIVE extension host, 'njzy.stats-bar' took 100% of 5636.128ms #1

Closed bersbersbers closed 2 years ago

bersbersbers commented 3 years ago

As soon as I enable the extension on Windows 10, VS Code 1.60, even with "statsBar.modules": [].

image

njzydark commented 3 years ago

I'm working fine here and can't reproduce it, do you have this problem every time you start

bersbersbers commented 3 years ago

Yes, I do. After a restart, I may see something like this: image

I do not have that problem on Linux (using Remote SSH from the same Windows 10 host, also using VS Code 1.60).

Not sure if that is related, but network up/down is showing 0 throughout on Windows (not on Linux).

njzydark commented 2 years ago

Can you try version 0.5.1, this time the problem I really can not reproduce here, and this issue does exist for a long time, I first temporarily closed

bersbersbers commented 2 years ago

Just tried v0.5.1 on 1.69.1 - same thing. Installing the extension makes my laptop fan go wild pretty much immediately. Task Manager shows several PowerShell.exe processes appear and disappear per second, that may be related.

Nosferatu31 commented 2 years ago

Just tried v0.5.1 on 1.69.1 - same thing. Installing the extension makes my laptop fan go wild pretty much immediately. Task Manager shows several PowerShell.exe processes appear and disappear per second, that may be related.

I have the same issue.

njzydark commented 2 years ago

Just tried v0.5.1 on 1.69.1 - same thing. Installing the extension makes my laptop fan go wild pretty much immediately. Task Manager shows several PowerShell.exe processes appear and disappear per second, that may be related.

I have the same issue.

try this command in your powershell, can you see some output?

Get-WmiObject Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl
Nosferatu31 commented 2 years ago

Just tried v0.5.1 on 1.69.1 - same thing. Installing the extension makes my laptop fan go wild pretty much immediately. Task Manager shows several PowerShell.exe processes appear and disappear per second, that may be related.

I have the same issue.

try this command in your powershell, can you see some output?

Get-WmiObject Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl

Yes I can

njzydark commented 2 years ago

@Nosferatu31 Have a try to new version - v0.5.2

bersbersbers commented 2 years ago

v0.5.2 on VS Code 1.70 does look much better indeed. Certainly what I describe in https://github.com/njzydark/vscode-stats-bar/issues/1#issuecomment-1186806913 is not happening any more. Thanks!

Nosferatu31 commented 2 years ago

@njzydark all good now!