2010-06-18 09:23:40 +08:00
|
|
|
#ifndef NODE_PLATFORM_H_
|
|
|
|
#define NODE_PLATFORM_H_
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
|
|
|
|
class OS {
|
|
|
|
public:
|
2010-06-18 15:26:49 +08:00
|
|
|
static char** SetupArgs(int argc, char *argv[]);
|
|
|
|
static void SetProcessTitle(char *title);
|
|
|
|
static const char* GetProcessTitle(int *len);
|
|
|
|
|
2010-06-18 09:23:40 +08:00
|
|
|
static int GetMemory(size_t *rss, size_t *vsize);
|
2010-06-22 14:31:19 +08:00
|
|
|
static int GetExecutablePath(char* buffer, size_t* size);
|
2010-06-18 09:23:40 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace node
|
|
|
|
#endif // NODE_PLATFORM_H_
|