summaryrefslogtreecommitdiff
path: root/src/node_worker.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-11-02 19:06:47 +0100
committerAnna Henningsen <anna@addaleax.net>2019-11-06 23:26:03 +0100
commit5bf43729a403b992cc90b5cdbbaaf505769d1107 (patch)
treee0f7eea86af950fdfc8cecaca63a6334d2072159 /src/node_worker.cc
parent55f98df303939774639bb597c6392c1c85bae6dd (diff)
downloadandroid-node-v8-5bf43729a403b992cc90b5cdbbaaf505769d1107.tar.gz
android-node-v8-5bf43729a403b992cc90b5cdbbaaf505769d1107.tar.bz2
android-node-v8-5bf43729a403b992cc90b5cdbbaaf505769d1107.zip
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 c18af7c055..e09bb4e7aa 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_);
}