feat: add name to app.getAppMetrics() output (#24359)
This commit is contained in:
parent
25a36a43c1
commit
7fd96cd188
6 changed files with 26 additions and 6 deletions
|
@ -52,9 +52,11 @@ namespace electron {
|
|||
|
||||
ProcessMetric::ProcessMetric(int type,
|
||||
base::ProcessHandle handle,
|
||||
std::unique_ptr<base::ProcessMetrics> metrics) {
|
||||
std::unique_ptr<base::ProcessMetrics> metrics,
|
||||
const std::string& name) {
|
||||
this->type = type;
|
||||
this->metrics = std::move(metrics);
|
||||
this->name = name;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
HANDLE duplicate_handle = INVALID_HANDLE_VALUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue