Repository: vscode
Issue: Process Explorer memory usage doesn't add up to Activity Monitor
Labels: bug,help wanted,workbench-diagnostics

Type: <b>Bug</b>

Following the vscode [performance debugging guide](https://github.com/microsoft/vscode/wiki/Performance-Issues), I tried using "Process Explorer" to pinpoint which extension may be causing a high memory usage I observed in Activity Monitor ("Code - Insiders Helper (Plugin)"). However, the memory usages in process explorer did not add up anywhere close to what I saw in Activity Monitor (4GB for one plugin process in Activity Monitor, a total of <1GB accounted for in vscode explorer), making it very hard to understand which process caused it.

Additionally I tried following the steps to "Profile Running Extensions", but clicking the record button did nothing (can file a separate issue for that if needed).

|Process Explorer|Mac Activity Monitor|
|-|-|
|![Screenshot 2023-09-27 at 9 57 24 AM](https://github.com/microsoft/vscode/assets/77301670/cc8bbe38-0d20-491a-be70-8436353d0ba3)|<img width="1030" alt="Screenshot 2023-09-27 at 9 57 33 AM" src="https://github.com/microsoft/vscode/assets/77301670/0e3c15c2-3c9f-48f3-9708-c1c8f98ea217">|

VS Code version: Code - Insiders 1.83.0-insider (Universal) (f36df69328ed10f76d4be03e8a82b61794b49711, 2023-09-13T05:34:48.836Z)
OS version: Darwin arm64 22.6.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 (8 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|4, 6, 6|
|Memory (System)|16.00GB (0.05GB free)|
|Process Argv|--crash-reporter-id 5e012cc3-e213-44a2-b238-d6c15248dd24|
|Screen Reader|yes|
|VM|0%|
</details><details><summary>Extensions (39)</summary>

Extension|Author (truncated)|Version
---|---|---
sort-imports|ama|6.3.1
vscode-eslint|dba|2.4.2
prettier-vscode|esb|10.1.0
vscode-terminals|fab|1.15.0
figma-vscode-extension|fig|0.2.7
copilot|Git|1.116.440
copilot-chat|Git|0.8.2023092501
copilot-labs|Git|0.15.1019
vscode-pull-request-github|Git|0.73.2023092609
vscode-graphql|Gra|0.8.19
vscode-graphql-execution|Gra|0.2.4
vscode-graphql-syntax|Gra|1.2.2
relay|met|1.0.2
sapling-scm|met|0.1.27
git-graph|mhu|1.30.0
vscode-kubernetes-tools|ms-|1.3.14
remote-containers|ms-|0.313.0
remote-ssh|ms-|0.106.4
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.81.4
vscode-remote-extensionpack|ms-|0.24.0
remote-explorer|ms-|0.4.1
remote-server|ms-|1.4.3
vscode-jest|Ort|5.2.3
vscode-thunder-client|ran|2.12.3
java|red|1.22.1
vscode-commons|red|0.0.6
vscode-yaml|red|1.14.0
statsig-dev|sta|0.0.1
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.2.30
vscode-java-debug|vsc|0.54.0
vscode-java-dependency|vsc|0.23.1
vscode-java-pack|vsc|0.25.14
vscode-java-test|vsc|0.40.0
vscode-maven|vsc|0.42.0
console-ninja|Wal|0.0.226
fig|wit|0.0.7
vscode-import-cost|wix|3.3.0

(2 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vsdfh931cf:30280410
vshan820:30294714
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
py29gd2263:30784851
vscaat:30438846
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewext54:30618038
a9j8j154:30646983
showlangstatbar:30737417
24365598:30687740
pythonfmttext:30716741
fixshowwlkth:30771523
showindicator:30805243
pythongtdpath:30726887
i26e3531:30792625
welcomedialog:30812478
pythonnosmt12:30779711
pythonidxpt:30768918
pythonnoceb:30776497
copilotsettingt:30808721
dsvsc013:30777762
dsvsc014:30777825
diffeditorv2:30786206
pythonlinttypecf:30823782
pythonmpsinfo:30842935
dsvsc015:30821418
pythontestfixt:30826906
pythonfb280951:30830809
pythonregdiag:30842812
pythonmypyd1:30841190

```

</details>

<!-- generated by issue reporter -->