You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

performance-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

performance-nodejs - npm Package Compare versions

Comparing version

to
1.0.3

LICENSE

2

package.json
{
"name": "performance-nodejs",
"description": "get nodejs performance, such as: heap statistics, event loop delay",
"version": "1.0.2",
"version": "1.0.3",
"author": "Tree Xie <vicansocanbico@gmail.com>",

@@ -6,0 +6,0 @@ "keywords": [

@@ -38,6 +38,7 @@ # performance-nodejs

`malloced_memory`, `peak_malloced_memory` and `does_zap_garbage` is new in node.js v7.x
```
performance(data => {
// {"lag":5,"heap":{"total_heap_size":7.99609375,"total_heap_size_executable":5,"total_physical_size":7.99609375,"total_available_size":1422.0968933105469,"used_heap_size":3.84417724609375,"heap_size_limit":1464}}
// {"lag":3,"heap":{"total_heap_size":22,"total_heap_size_executable":6,"total_physical_size":22,"total_available_size":1407,"used_heap_size":15,"heap_size_limit":1432,"malloced_memory":0,"peak_malloced_memory":2,"does_zap_garbage":0}}
console.info(JSON.stringify(data));

@@ -44,0 +45,0 @@ }, 'MB', 100);

Sorry, the diff of this file is not supported yet