Browse Source

doc: simplify process.memoryUsage() example code

Using util.inspect doesn't change the output in this case

PR-URL: https://github.com/nodejs/node/pull/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>
v6.x
Thomas Watson Steen 8 years ago
committed by Myles Borins
parent
commit
653f092639
  1. 4
      doc/api/process.md

4
doc/api/process.md

@ -1136,9 +1136,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:

Loading…
Cancel
Save