static Handle<Value> GetUid(const Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
int uid = getuid();
return scope.Close(Integer::New(uid));
}
static Handle<Value> GetGid(const Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
int gid = getgid();
return scope.Close(Integer::New(gid));
}
static Handle<Value> Uptime(const Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
double uptime;
uv_err_t err = uv_uptime(&uptime);
v8::Handle<v8::Value> MemoryUsage(const v8::Arguments& args) {
HandleScope scope;
- assert(args.Length() == 0);
size_t rss;