Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-11-02 21:06:47 +0300
committerMyles Borins <mylesborins@google.com>2019-11-17 10:59:09 +0300
commitcd233e3f1679e78207597557321f4f7088388aa3 (patch)
treea2809465414251784eeae0913904a4f039a979ff /src/node_worker.cc
parent8234d04b566b9bbc764efb988e9884df9ece0369 (diff)
src: make EndStartedProfilers an exit hook
Run `EndStartedProfilers` on Environment teardown. This is part of a series of changes to make embedding easier, by requiring fewer internal methods to build a fully functioning Node.js instance. PR-URL: https://github.com/nodejs/node/pull/30229 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index c18af7c055e..e09bb4e7aab 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -400,9 +400,6 @@ void Worker::Run() {
if (exit_code_ == 0 && !stopped)
exit_code_ = exit_code;
-#if HAVE_INSPECTOR
- profiler::EndStartedProfilers(env_.get());
-#endif
Debug(this, "Exiting thread for worker %llu with exit code %d",
thread_id_, exit_code_);
}