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:
authorYuriy Vasiyarov <yvasiyarov@ozon.travel>2019-05-28 13:41:12 +0300
committerRich Trott <rtrott@gmail.com>2019-05-30 16:25:55 +0300
commita40aae8d1bd8e6d292cdfb20a59b101981673334 (patch)
tree0df392b2c9fa8bf66c30eab6d5394b3acb87416e /src/node_v8.cc
parentafb84744c6071e77f0738a7ff1a52aaa81db8b77 (diff)
src: export number_of_native_contexts and number_of_detached_contexts
export number_of_native_contexts and number_of_detached_contexts as part of v8.getHeapStatistics() PR-URL: https://github.com/nodejs/node/pull/27933 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_v8.cc')
-rw-r--r--src/node_v8.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc
index 5adc53b84d8..1227ebec536 100644
--- a/src/node_v8.cc
+++ b/src/node_v8.cc
@@ -52,7 +52,9 @@ using v8::Value;
V(5, heap_size_limit, kHeapSizeLimitIndex) \
V(6, malloced_memory, kMallocedMemoryIndex) \
V(7, peak_malloced_memory, kPeakMallocedMemoryIndex) \
- V(8, does_zap_garbage, kDoesZapGarbageIndex)
+ V(8, does_zap_garbage, kDoesZapGarbageIndex) \
+ V(9, number_of_native_contexts, kNumberOfNativeContextsIndex) \
+ V(10, number_of_detached_contexts, kNumberOfDetachedContextsIndex)
#define V(a, b, c) +1
static const size_t kHeapStatisticsPropertiesCount =