summaryrefslogtreecommitdiff
path: root/src/node.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.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.cc')
-rw-r--r--src/node.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index 0b7fca544f..18c4665b49 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -168,7 +168,6 @@ static const unsigned kMaxSignal = 32;
void WaitForInspectorDisconnect(Environment* env) {
#if HAVE_INSPECTOR
- profiler::EndStartedProfilers(env);
if (env->inspector_agent()->IsActive()) {
// Restore signal dispositions, the app is done and is no longer