feat: add process.getSystemVersion() (#16599)

This commit is contained in:
Milan Burda 2019-02-18 13:59:48 +01:00 committed by Charles Kerr
parent eaa0e28396
commit a04d9ef35b
3 changed files with 20 additions and 0 deletions

View file

@ -73,6 +73,8 @@ void AtomBindings::BindProcess(v8::Isolate* isolate,
process->SetMethod("getHeapStatistics", &GetHeapStatistics);
process->SetMethod("getProcessMemoryInfo", &GetProcessMemoryInfo);
process->SetMethod("getSystemMemoryInfo", &GetSystemMemoryInfo);
process->SetMethod("getSystemVersion",
&base::SysInfo::OperatingSystemVersion);
process->SetMethod("getIOCounters", &GetIOCounters);
process->SetMethod("getCPUUsage", base::Bind(&AtomBindings::GetCPUUsage,
base::Unretained(metrics)));