diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2021-03-29 19:20:08 +0300 |
---|---|---|
committer | legendecas <legendecas@gmail.com> | 2021-04-08 07:02:01 +0300 |
commit | 6cb314bbe5ee5c9af3c111516fb7f7689c10ecda (patch) | |
tree | 6f99c883997da9f179f396d388dc81ff765c92dc /src/env.h | |
parent | 9cfb418e1fca3a796e4bf782d7ac4a348a042dec (diff) |
bootstrap: print information for snapshot at environment exit in debug
Print information relevant to snapshot building at the environment
exit when NODE_DEBUG_NATIVE is set to include mksnapshot. This helps
us understand what need to be fixed to build a snapshot when a script
is run to completion.
PR-URL: https://github.com/nodejs/node/pull/37967
Refs: https://github.com/nodejs/node/issues/37476
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h index d1543f95e1a..6b8444f0bc5 100644 --- a/src/env.h +++ b/src/env.h @@ -960,6 +960,7 @@ class Environment : public MemoryRetainer { void CreateProperties(); void DeserializeProperties(const EnvSerializeInfo* info); + void PrintInfoForSnapshotIfDebug(); void PrintAllBaseObjects(); void VerifyNoStrongBaseObjects(); void EnqueueDeserializeRequest(DeserializeRequestCallback cb, @@ -1123,6 +1124,7 @@ class Environment : public MemoryRetainer { // List of id's that have been destroyed and need the destroy() cb called. inline std::vector<double>* destroy_async_id_list(); + std::set<struct node_module*> internal_bindings; std::set<std::string> native_modules_with_cache; std::set<std::string> native_modules_without_cache; // This is only filled during deserialization. We use a vector since |