MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Get render process information from ICoreWebView2 object

Open
#3,298 14 comments 0 reactions 3 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
We have multiple features that use the browser function, and now we really want to have such a requirement.

We want to count the CPU and Memory usage of each feature, that is, count the CPU and Memory usage of a certain feature for the Render process. So I hope that Webview2 can provide an interface to get the corresponding set of Render process IDs from the ICoreWebView2 object.
If this interface is provided, the usage process is as follows:

  1. Get feature1's ICoreWebView2 object.
  2. Call API GetRenderProssesprovided by ICoreWebView2 object.
  3. Calculate the memory usage of the process returned by GetRenderProsses.

Although Webview2 provides the GetProcessInfos interface, this interface obtains all the process information related to Webview2, we still cannot know the Render process information corresponding to an ICoreWebView2.

AB#44641334

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.