FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/src/platform.h at reload · tmpvar/node · GitHub
tmpvar
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
src
/
platform.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (19 loc) · 625 Bytes
Breadcrumbs
node
/
src
/
platform.h
Copy path
File metadata and controls
25 lines (19 loc) · 625 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
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_
Back
|
FazBrowse Home
|
New Git URL