Skip to content

Commit

Permalink
fix: expose process.getProcessMemoryInfo to sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Apr 3, 2019
1 parent b887491 commit f1d5b07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atom/renderer/atom_sandboxed_renderer_client.cc
Expand Up @@ -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())));
Expand Down

0 comments on commit f1d5b07

Please sign in to comment.