@lvce-editor/process-explorer-worker 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2467,8 +2467,9 @@ const getFocusedIndex = (oldFocusedIndex, visibleProcesses) => {
|
|
|
2467
2467
|
const refresh = async state => {
|
|
2468
2468
|
try {
|
|
2469
2469
|
await initializeProcessExplorer(state.platform);
|
|
2470
|
-
const
|
|
2471
|
-
const
|
|
2470
|
+
const includeElectronData = state.platform === Electron;
|
|
2471
|
+
const rootPid = state.rootPid || (await invoke('ProcessId.getMainProcessId', includeElectronData));
|
|
2472
|
+
const processes = await invoke('ListProcessesWithMemoryUsage.listProcessesWithMemoryUsage', rootPid, includeElectronData);
|
|
2472
2473
|
const visibleProcesses = getVisibleProcesses(processes, state.collapsedPids, rootPid);
|
|
2473
2474
|
return {
|
|
2474
2475
|
...state,
|