mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: dump isolate stats when process exits
When process exits, dump v8 isolate's internal stats for performance evaluation and debugging. It fixed the incorrect profiling log output when running V8's builtin PGO profiling for node.js service type application,which exits by user pressing CTRL+C etc. keys. PR-URL: https://github.com/nodejs/node/pull/44534 Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
8d259e6086
commit
eaf2ffc23a
1 file changed
+1
@@ -761,6 +761,7 @@ ThreadId AllocateEnvironmentThreadId() {
|
||||
void DefaultProcessExitHandler(Environment* env, int exit_code) {
|
||||
env->set_can_call_into_js(false);
|
||||
env->stop_sub_worker_contexts();
|
||||
env->isolate()->DumpAndResetStats();
|
||||
DisposePlatform();
|
||||
uv_library_shutdown();
|
||||
exit(exit_code);
|
||||
|
||||
Reference in new issue
Block a user