Extend snapshot creation API to store the file being executed and the entry point to get to that context.