mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Add process.startTime
This commit is contained in:
@@ -112,6 +112,9 @@ The PID of the process.
|
||||
+process.platform+ ::
|
||||
What platform you're running on. +"linux2"+, +"darwin"+, etc.
|
||||
|
||||
+process.startTime+ ::
|
||||
When the process started.
|
||||
|
||||
+process.memoryUsage()+ ::
|
||||
Returns the memory usage of the Node process. It looks like this
|
||||
+
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
(function (process) {
|
||||
process.startTime = new Date();
|
||||
|
||||
process.global.process = process;
|
||||
process.global.global = process.global;
|
||||
|
||||
Reference in New Issue
Block a user