Exposing cpu & io counters function similar to mem methods

This commit is contained in:
Hari Krishna Reddy Juturu 2017-05-04 14:48:37 -07:00
parent 472dad1ffc
commit 6b51c25820
2 changed files with 35 additions and 31 deletions

View file

@ -37,6 +37,8 @@ class AtomBindings {
static v8::Local<v8::Value> GetProcessMemoryInfo(v8::Isolate* isolate);
static v8::Local<v8::Value> GetSystemMemoryInfo(v8::Isolate* isolate,
mate::Arguments* args);
static v8::Local<v8::Value> GetCPUUsage(v8::Isolate* isolate);
static v8::Local<v8::Value> GetIOCounters(v8::Isolate* isolate);
private:
void ActivateUVLoop(v8::Isolate* isolate);