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:
authortheanarkh <2923878201@qq.com>2022-04-29 18:21:41 +0300
committerMichaƫl Zasso <targos@protonmail.com>2022-05-02 15:39:32 +0300
commit4af0fbd41ea344868c75f4c7c3eece40e664e9ef (patch)
tree18ce06492d0e2eaf7de84eb2783cb4c871f70e03 /src/node_v8.cc
parenta0638a23b099b5ca174680324e856533d765be09 (diff)
v8: export cpu_profiler_metadata_size in getHeapCodeStatistics
PR-URL: https://github.com/nodejs/node/pull/42818 Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src/node_v8.cc')
-rw-r--r--src/node_v8.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc
index e984621a4c0..cf7a494b7c7 100644
--- a/src/node_v8.cc
+++ b/src/node_v8.cc
@@ -82,7 +82,8 @@ static constexpr size_t kHeapSpaceStatisticsPropertiesCount =
#define HEAP_CODE_STATISTICS_PROPERTIES(V) \
V(0, code_and_metadata_size, kCodeAndMetadataSizeIndex) \
V(1, bytecode_and_metadata_size, kBytecodeAndMetadataSizeIndex) \
- V(2, external_script_source_size, kExternalScriptSourceSizeIndex)
+ V(2, external_script_source_size, kExternalScriptSourceSizeIndex) \
+ V(3, cpu_profiler_metadata_size, kCPUProfilerMetaDataSizeIndex)
#define V(a, b, c) +1
static const size_t kHeapCodeStatisticsPropertiesCount =