Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Extension causes high cpu load #149

Open
EwertonJordao opened this issue Mar 17, 2020 · 6 comments
Open

Extension causes high cpu load #149

EwertonJordao opened this issue Mar 17, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@EwertonJordao
Copy link

  • Issue Type: Performance
  • Extension Name: vscode-logicapps
  • Extension Version: 0.2.32
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.43.0

⚠️ Make sure to attach this file from your home-directory:
⚠️C:\Users\ejordao\ms-azuretools.vscode-logicapps-unresponsive.cpuprofile.txt

Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

@joechung-msft
Copy link
Contributor

joechung-msft commented Mar 25, 2020

Can you please attach the .cpuprofile.txt file to this issue? Or post a gist and link to it here? Thanks.

@joechung-msft joechung-msft added the question Further information is requested label Mar 25, 2020
@EwertonJordao
Copy link
Author

ms-azuretools.vscode-logicapps-unresponsive.cpuprofile.txt

@joechung-msft
Copy link
Contributor

Thank you for sharing this profiler data. I will take a look at this as soon as I can.

@joechung-msft
Copy link
Contributor

joechung-msft commented May 29, 2020

I took a look at the CPU profiler data. The unresponsiveness is caused by having to load and compile a large number of scripts from the azure-arm-resource dependency. We can address this by switching from azure-arm-logic and azure-arm-resource to @azure/arm-logic and @azure/arm-resources, which solve the problem by bundling their scripts.

@joechung-msft joechung-msft added enhancement New feature or request and removed question Further information is requested labels May 29, 2020
@EwertonJordao
Copy link
Author

Ok, I need to change my settings.json for this?

@joechung-msft
Copy link
Contributor

This is a code change which will require updating the extension to use the newer modules instead of the older ones.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants