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 <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>
  • Loading branch information
watson authored and Myles Borins committed Nov 18, 2016
1 parent c48c318 commit 475fe96
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 @@ -768,9 +768,7 @@ Returns an object describing the memory usage of the Node.js process
measured in bytes.

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

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

This will generate:
Expand Down

0 comments on commit 475fe96

Please sign in to comment.