mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
d701667950
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>
16 lines
385 B
C++
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_
|