Skip to content

Commit 92bd19e

Browse files
watsonaddaleax
authored andcommitted
doc: simplify process.memoryUsage() example code
Using util.inspect doesn't change the output in this case PR-URL: #9560 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 58fc7a1 commit 92bd19e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/api/process.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,9 +1182,7 @@ of the Node.js process measured in bytes.
11821182
For example, the code:
11831183

11841184
```js
1185-
const util = require('util');
1186-
1187-
console.log(util.inspect(process.memoryUsage()));
1185+
console.log(process.memoryUsage());
11881186
```
11891187

11901188
Will generate:

0 commit comments

Comments
 (0)