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/api | |
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/api')
-rw-r--r-- | src/api/embed_helpers.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/embed_helpers.cc b/src/api/embed_helpers.cc index 998d7507fc0..ff0f8d7f723 100644 --- a/src/api/embed_helpers.cc +++ b/src/api/embed_helpers.cc @@ -53,6 +53,7 @@ Maybe<int> SpinEventLoop(Environment* env) { if (env->is_stopping()) return Nothing<int>(); env->set_trace_sync_io(false); + env->PrintInfoForSnapshotIfDebug(); env->VerifyNoStrongBaseObjects(); return EmitProcessExit(env); } |