0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/tools/snapshot/snapshot_builder.h
Joyee Cheung d701667950
tools: implement node_mksnapshot
Implements a node_mksnapshot target that generates a snapshot blob
from a Node.js main instance's isolate, and serializes the data blob
with other additional data into a C++ file that can be embedded into
the Node.js binary.

PR-URL: https://github.com/nodejs/node/pull/27321
Refs: https://github.com/nodejs/node/issues/17058
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2019-04-23 11:26:01 +08:00

16 lines
385 B
C++

#ifndef TOOLS_SNAPSHOT_SNAPSHOT_BUILDER_H_
#define TOOLS_SNAPSHOT_SNAPSHOT_BUILDER_H_
#include <string>
#include <vector>
namespace node {
class SnapshotBuilder {
public:
static std::string Generate(const std::vector<std::string> args,
const std::vector<std::string> exec_args);
};
} // namespace node
#endif // TOOLS_SNAPSHOT_SNAPSHOT_BUILDER_H_