diff --git a/src/debug_utils.h b/src/debug_utils.h index 31c929f122cd1f..280b4cb39c780a 100644 --- a/src/debug_utils.h +++ b/src/debug_utils.h @@ -51,6 +51,7 @@ void NODE_EXTERN_PRIVATE FWrite(FILE* file, const std::string& str); V(SEA) \ V(WASI) \ V(MKSNAPSHOT) \ + V(SNAPSHOT_SERDES) \ V(PERMISSION_MODEL) enum class DebugCategory : unsigned int { diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index 2c10f176c94033..562a47ddcc9c8e 100644 --- a/src/node_snapshotable.cc +++ b/src/node_snapshotable.cc @@ -145,7 +145,8 @@ class SnapshotDeserializer : public BlobDeserializer { public: explicit SnapshotDeserializer(std::string_view v) : BlobDeserializer( - per_process::enabled_debug_list.enabled(DebugCategory::MKSNAPSHOT), + per_process::enabled_debug_list.enabled( + DebugCategory::SNAPSHOT_SERDES), v) {} template { SnapshotSerializer() : BlobSerializer( per_process::enabled_debug_list.enabled( - DebugCategory::MKSNAPSHOT)) { + DebugCategory::SNAPSHOT_SERDES)) { // Currently the snapshot blob built with an empty script is around 4MB. // So use that as the default sink size. sink.reserve(4 * 1024 * 1024);