mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Add process.startTime
This commit is contained in:
1 parent
bc17d94a0a
commit
896cef23c4
2 files changed
+4
No files matched your search
@@ -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