Skip to content

Commit

Permalink
doc: simplify process.memoryUsage() example code
Browse files Browse the repository at this point in the history
Using util.inspect doesn't change the output in this case

PR-URL: #9560
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
watson authored and silverwind committed Nov 13, 2016
1 parent 8a78fcb commit 4b35f25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1182,9 +1182,7 @@ of the Node.js process measured in bytes.
For example, the code:

```js
const util = require('util');

console.log(util.inspect(process.memoryUsage()));
console.log(process.memoryUsage());
```

Will generate:
Expand Down

0 comments on commit 4b35f25

Please sign in to comment.