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:
authorRoman Klauke <romaaan.git@gmail.com>2015-08-11 21:06:41 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2015-08-11 23:51:50 +0300
commitad7f74453dfe4b13738e13eaf039e73c3daf1fd8 (patch)
treefc0a7fe7183ccc6d80cce5f1cbded965681143be /src/node_v8.cc
parentae05807f0472fbe73b96660a93ae4b4924eb67ce (diff)
src: add total_available_size to v8 statistics
v8 introduced the new flag `total_available_size` in version 4.4 and upwards. This flag is now available on `v8.getHeapStatistics` with the name `total_available_size`. It contains the total available heap size of v8. Introduced with commit: v8/v8-git-mirror@0a1352a7 PR-URL: https://github.com/nodejs/io.js/pull/2348 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_v8.cc')
-rw-r--r--src/node_v8.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc
index 0a3e6e76338..db492e3d1a5 100644
--- a/src/node_v8.cc
+++ b/src/node_v8.cc
@@ -26,8 +26,9 @@ using v8::Value;
V(0, total_heap_size, kTotalHeapSizeIndex) \
V(1, total_heap_size_executable, kTotalHeapSizeExecutableIndex) \
V(2, total_physical_size, kTotalPhysicalSizeIndex) \
- V(3, used_heap_size, kUsedHeapSizeIndex) \
- V(4, heap_size_limit, kHeapSizeLimitIndex)
+ V(3, total_available_size, kTotalAvailableSize) \
+ V(4, used_heap_size, kUsedHeapSizeIndex) \
+ V(5, heap_size_limit, kHeapSizeLimitIndex)
#define V(a, b, c) +1
static const size_t kHeapStatisticsPropertiesCount =