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 <theratliter@gmail.com>2022-08-10 19:44:05 +0300
committerGitHub <noreply@github.com>2022-08-10 19:44:05 +0300
commiteb7f22a6b420f3f4a401f5b9fc66f8cd5e746dd9 (patch)
tree06f30fe32088d6b2e615f392c1eb07a5723ffebc /src/node_perf_common.h
parent37115034dded06f54876a3b4784c5c478e8b65e1 (diff)
perf_hooks: fix gc elapsed time
PR-URL: https://github.com/nodejs/node/pull/44058 Refs: https://github.com/nodejs/node/issues/44046 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_perf_common.h')
-rw-r--r--src/node_perf_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_perf_common.h b/src/node_perf_common.h
index ed520e69153..f457d73c579 100644
--- a/src/node_perf_common.h
+++ b/src/node_perf_common.h
@@ -71,6 +71,7 @@ class PerformanceState {
AliasedUint32Array observers;
uint64_t performance_last_gc_start_mark = 0;
+ uint16_t current_gc_type = 0;
void Mark(enum PerformanceMilestone milestone,
uint64_t ts = PERFORMANCE_NOW());