Skip to content
Snippets Groups Projects
Commit e4a03e03 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] #951 Add memory dump tool for JS engine

parent ff13b8df
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,6 @@ gui/nw ...@@ -13,9 +13,6 @@ gui/nw
*.swp *.swp
*.swo *.swo
# Yarn
yarn.lock
# Vagrant # Vagrant
.vagrant/ .vagrant/
vagrant/*.log vagrant/*.log
......
#!/usr/bin/env node #!/usr/bin/env node
"use strict"; "use strict";
const heapdump = require('heapdump'); // Allow to take heap snapshots on will with "kill -USR2 <pid>" --> generates a heapdump-<id>.heapsnapshot file from where duniter was launched
const co = require('co'); const co = require('co');
const duniter = require('../index'); const duniter = require('../index');
const stack = duniter.statics.autoStack(); const stack = duniter.statics.autoStack();
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"daemonize2": "0.4.2", "daemonize2": "0.4.2",
"duniter-common": "^1.0.0", "duniter-common": "^1.0.0",
"event-stream": "3.3.4", "event-stream": "3.3.4",
"heapdump": "^0.3.9",
"inquirer": "3.0.6", "inquirer": "3.0.6",
"jison": "0.4.17", "jison": "0.4.17",
"merkle": "0.5.1", "merkle": "0.5.1",
......
yarn.lock 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment