mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: expose process.getProcessMemoryInfo to sandbox (#17669)
This commit is contained in:
@@ -158,6 +158,8 @@ void AtomSandboxedRendererClient::InitializeBindings(
|
||||
process.SetMethod("hang", AtomBindings::Hang);
|
||||
process.SetMethod("getHeapStatistics", &AtomBindings::GetHeapStatistics);
|
||||
process.SetMethod("getSystemMemoryInfo", &AtomBindings::GetSystemMemoryInfo);
|
||||
process.SetMethod("getProcessMemoryInfo",
|
||||
&AtomBindings::GetProcessMemoryInfo);
|
||||
process.SetMethod(
|
||||
"getCPUUsage",
|
||||
base::Bind(&AtomBindings::GetCPUUsage, base::Unretained(metrics_.get())));
|
||||
|
||||
Reference in New Issue
Block a user