Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Issue with using 'mksnapshot' to create snapshots #323

Closed
nicknmejia opened this issue Jun 20, 2017 · 1 comment
Closed

Issue with using 'mksnapshot' to create snapshots #323

nicknmejia opened this issue Jun 20, 2017 · 1 comment

Comments

@nicknmejia
Copy link

Hi there, I've spent the last two days looking for more information on php v8js, specifically how to create and use snapshots, and I am still stuck at a dead end.

I read in issue #205 that I should use mksnapshot --startup_blob=custom_snapshot.bin to create them but my terminal can't find the command. I checked my v8 folder in /opt but it didn't contain anything to indicate it existed. I installed following the directions from the Linux guide if that helps.

Any information would be a huge help! Thanks in advance.

@stesie
Copy link
Member

stesie commented Sep 1, 2017

You don't need to use mksnapshot manually, but use V8Js API introduced by #207

This is, just use the static method V8Js::createSnapshot and pass it the extra JavaScript code you need

@stesie stesie closed this as completed in b7b8a7c Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants