Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.3.4
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (19 sloc) 0.625 kb
#ifndef NODE_PLATFORM_H_
#define NODE_PLATFORM_H_
#include <v8.h>
namespace node {
class Platform {
public:
static char** SetupArgs(int argc, char *argv[]);
static void SetProcessTitle(char *title);
static const char* GetProcessTitle(int *len);
static int GetMemory(size_t *rss, size_t *vsize);
static int GetExecutablePath(char* buffer, size_t* size);
static int GetCPUInfo(v8::Local<v8::Array> *cpus);
static double GetFreeMemory();
static double GetTotalMemory();
static double GetUptime();
static int GetLoadAvg(v8::Local<v8::Array> *loads);
};
} // namespace node
#endif // NODE_PLATFORM_H_
Jump to Line
Something went wrong with that request. Please try again.