diff --git a/src/api/environment.cc b/src/api/environment.cc index e772f172e5e..edfb42eb92a 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -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);