Vscode-cpptools: Extension causes high cpu load

Created on 25 Feb 2019  Â·  10Comments  Â·  Source: microsoft/vscode-cpptools

  • Issue Type: Performance
  • Extension Name: cpptools
  • Extension Version: 0.21.0
  • OS Version: Linux x64 4.9.0-8-amd64
  • VSCode version: 1.31.1

ms-vscode.cpptools-unresponsive.cpuprofile.txt

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

bug fixed (release pending) performance

All 10 comments

From the .cpuprofile, it is taking a long time to load a module. VS Code's solution is https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load#code-loading

@WardenGnaw So we should be using WebPack? Do we know how severe of an issue this is, i.e. how much of a benefit would be gained?

@sean-mcmanus We would have to do profiling on WebPacked code vs non-WebPacked code and see what the improvement is.

Same notification while loading the same code folder (which is quite huge, tens of thousands of files, that might be of importance ?).

ms-vscode.cpptools-unresponsive.cpuprofile.txt

Time is still mostly spent doing module loads. Profiler is saying it is taking 2500 ms.

I noticed in the messages that @sean-mcmanus is leaving on duplicate issues, there's apparently a fix to this issue in the upcoming release. Is there a branch where this is currently located?

Thanks!

Version 1.40.2

image

@larshb "high CPU load" is a general symptom with many possible causes -- can you open a new issue with more repro info? Are you able to look at the logs or call stacks to determine what processing is occurring?

Was this page helpful?
0 / 5 - 0 ratings