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>2020-01-16 21:44:11 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-02-17 21:54:24 +0300
commitf56de5a3b43a224bac6de2fee8d2d6c3a1e4a079 (patch)
tree59eb04efe6ecd0948797c5a2caa7cbd7bad2ac6a /src/node_worker.cc
parent0cacc1facf77e91affdf69d6c3249aab9838838f (diff)
src: move MemoryInfo() for worker code to .cc files
This is a) the right thing to do anyway because these functions can not be inlined by the compiler and b) avoids compilation warnings in the following commit. PR-URL: https://github.com/nodejs/node/pull/31386 Refs: https://github.com/openjs-foundation/summit/pull/240 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index bdc2a8024c9..0e77f449d78 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -655,6 +655,10 @@ void Worker::Exit(int code) {
}
}
+void Worker::MemoryInfo(MemoryTracker* tracker) const {
+ tracker->TrackField("parent_port", parent_port_);
+}
+
namespace {
// Return the MessagePort that is global for this Environment and communicates