summaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
authorYuriy Vasiyarov <yvasiyarov@ozon.travel>2019-05-30 16:41:03 +0300
committerRich Trott <rtrott@gmail.com>2019-07-30 11:36:51 -0700
commit21a7c695f0601ae10ccf6f6cdc9f35f56be2fe90 (patch)
treec6eb8e8c1d9905727e08b0f429e821c99b94b6ca /src/env-inl.h
parent8be37663532ac364ef57eb33913ae4ece583077d (diff)
downloadandroid-node-v8-21a7c695f0601ae10ccf6f6cdc9f35f56be2fe90.tar.gz
android-node-v8-21a7c695f0601ae10ccf6f6cdc9f35f56be2fe90.tar.bz2
android-node-v8-21a7c695f0601ae10ccf6f6cdc9f35f56be2fe90.zip
src: export v8.GetHeapCodeAndMetadataStatistics()
Export statistic provided by V8 through HeapCodeStatistics class and and GetHeapCodeAndMetadataStatistics function to v8 Node.js module PR-URL: https://github.com/nodejs/node/pull/27978 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r--src/env-inl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index 4451080940..f970e414f1 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -569,6 +569,16 @@ inline void Environment::set_heap_space_statistics_buffer(double* pointer) {
heap_space_statistics_buffer_ = pointer;
}
+inline double* Environment::heap_code_statistics_buffer() const {
+ CHECK_NOT_NULL(heap_code_statistics_buffer_);
+ return heap_code_statistics_buffer_;
+}
+
+inline void Environment::set_heap_code_statistics_buffer(double* pointer) {
+ CHECK_NULL(heap_code_statistics_buffer_); // Should be set only once.
+ heap_code_statistics_buffer_ = pointer;
+}
+
inline char* Environment::http_parser_buffer() const {
return http_parser_buffer_;
}