feat: add process.getSystemVersion() (#16599)
This commit is contained in:
parent
eaa0e28396
commit
a04d9ef35b
3 changed files with 20 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue