Comparing version 0.0.1 to 0.0.2
@@ -15,2 +15,3 @@ var fs = require('fs'); | ||
fs.writeFileSync(file,JSON.stringify(_ndump.cpu.stop(file))); | ||
_ndump.cpu.deleteAll(); | ||
},times) | ||
@@ -17,0 +18,0 @@ } |
{ | ||
"name": "ndump", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Make a dump of the V8 heap and cpu for later inspection.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/piaohai/ndump", |
@@ -25,8 +25,10 @@ node-dump | ||
writes a file to the args directory. | ||
ndump.heap(filepath); | ||
ndump.heap(filepath); | ||
the second called `cpu(filepath,times)` that | ||
writes a file to the args directory. | ||
ndump.cpu(filepath,times); | ||
ndump.cpu(filepath,times); | ||
### Inspecting the snapshot | ||
@@ -33,0 +35,0 @@ |
@@ -6,2 +6,2 @@ var path = require('path'); | ||
h.cpu.start('fff'); | ||
console.log(h.cpu.stop('fff')); | ||
console.log(h.cpu.stop('fff')); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19
45
21710
19