Skip to content

How to record extension host performance in code-server? #6823

Answered by code-asher
chouzz asked this question in Q&A
Discussion options

You must be logged in to vote

Yup exactly right.

I think it would be possible to use the Node profiler. For example I just tried:

$ node --prof /path/to/code-server --auth none

Then you can check the processes and find the pid of the extension host. In my case, 71247.

$ ps -eFjH | grep node
coder      69704    4075   69704    4075  0 200059 69424  9 20:42 pts/0    00:00:02       node --prof /home/coder/.local/lib/code-server-4.22.1 --port 3000
coder      69757   69704   69704    4075  0 289566 126844 2 20:42 pts/0    00:00:26         /nix/store/zsdfz83ilpz26gm44r0fh7h5bqabc4cf-nodejs-18.20.2/bin/node --prof /home/coder/.local/lib/code-server-4.22.1/out/node/entry
coder      71050   69757   69704    4075  0 231682 594…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chouzz
Comment options

@code-asher
Comment options

Answer selected by chouzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants