Skip to content

Spikes in CPU with Analysis engine + Liveshare #1896

Description

  • Create an empty folder with a single python file containing import sys statement

  • Share the above folder using live share (Shared on Windows)

  • Now log onto a Mac and join the above session

  • Ensure Jedi is disabled on the Mac

  • Once you connect (after around 10 seconds), VS Code will automatically open the python file

  • Do nothing on the Mac, just watch the CPU spike (analysis process)

Note: The analysis engine process uses a minimum of 200% CPU.

Here's the output from the Python output panel in VSC:
Starting the analysis engine. [Info - 11:31:46 AM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory Initializing for //usr/bin/python Loading files from /

Mikhail Arkhipov (@MikhailArkhipov) cc

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions