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
|
@ -6,6 +6,7 @@
|
|||
#define SHELL_BROWSER_API_PROCESS_METRIC_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "base/process/process.h"
|
||||
#include "base/process/process_handle.h"
|
||||
|
@ -37,10 +38,12 @@ struct ProcessMetric {
|
|||
int type;
|
||||
base::Process process;
|
||||
std::unique_ptr<base::ProcessMetrics> metrics;
|
||||
std::string name;
|
||||
|
||||
ProcessMetric(int type,
|
||||
base::ProcessHandle handle,
|
||||
std::unique_ptr<base::ProcessMetrics> metrics);
|
||||
std::unique_ptr<base::ProcessMetrics> metrics,
|
||||
const std::string& name = std::string());
|
||||
~ProcessMetric();
|
||||
|
||||
#if !defined(OS_LINUX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue