Add process.getHeapStatistics() (#13183)

This commit is contained in:
Milan Burda 2018-06-10 14:00:36 +02:00 committed by Samuel Attard
parent 1b8790aeb2
commit 6ad0a22602
6 changed files with 64 additions and 0 deletions

View file

@ -90,6 +90,7 @@ void InitializeBindings(v8::Local<v8::Object> binding,
b.SetMethod("crash", AtomBindings::Crash);
b.SetMethod("hang", AtomBindings::Hang);
b.SetMethod("getArgv", GetArgv);
b.SetMethod("getHeapStatistics", &AtomBindings::GetHeapStatistics);
b.SetMethod("getProcessMemoryInfo", &AtomBindings::GetProcessMemoryInfo);
b.SetMethod("getSystemMemoryInfo", &AtomBindings::GetSystemMemoryInfo);
}