Repository navigation
fix(windows): include WebView2 memory in status bar - #176
Merged
1lck merged 2 commits intoAug 19, 2026
Merged
Conversation
1lck
approved these changes
Aug 19, 2026
13 of 16 tasks
xiaoyumuxi
added a commit
that referenced
this pull request
Nov 23, 2026
8 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #131
Summary
Root cause
The footer previously read
performance.memory, which only describes the V8 heap in one WebView2 renderer. It did not include the Tauri host or the WebView2 manager, renderer-native, GPU, network, storage, and crash-reporting processes, so the displayed values did not represent the application's Windows memory usage.Implementation
The Tauri host now identifies direct
msedgewebview2.exechildren as owned WebView2 roots, follows only their WebView2 descendants, and sumsPrivateWorkingSetSizeto match the Task Manager Memory column. Sampling runs throughspawn_blocking; the host logs at most one sampling failure per application lifetime while the frontend keeps the last good value.Validation
cargo test --manifest-path windows/tauri/src-tauri/Cargo.toml— 69 passedbun test— 181 passedbun run typecheckManual verification
On Windows, the Release footer reported
Total 306.2 MB · Lithe 9.4 MB, using the same private-working-set metric as Task Manager.