Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Eport.finish not being called: #110

Open
g00dnatur3 opened this issue May 9, 2017 · 0 comments
Open

Eport.finish not being called: #110

g00dnatur3 opened this issue May 9, 2017 · 0 comments

Comments

@g00dnatur3
Copy link

Raspberry Pi 3
Node 7.7.2

const profiler = require('v8-profiler');
var counter = 0;

setInterval(function() {
	
	const snapshot = profiler.takeSnapshot();

	console.log('exporting snapshot')
	
	snapshot.export(function(error, result) {
		if (err) throw err;
		
		console.log('NEVER GET HERE')
		
		const ws = fs.createWriteStream('snapshot_' + (counter++) + '.json');
		fs.end(result);
        snapshot.delete();
	});
}, 10000);
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant