You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weak phantom callbacks run during the prologue or epilogue of major GCs1 so the output you're seeing is not unexpected, just an artifact of how V8 implements them.
1 The relevant method is Heap::CollectGarbage() in deps/v8/src/heap/heap.cc.
Activity
bnoordhuis commentedon Jul 30, 2022
Weak phantom callbacks run during the prologue or epilogue of major GCs1 so the output you're seeing is not unexpected, just an artifact of how V8 implements them.
1 The relevant method is
Heap::CollectGarbage()in deps/v8/src/heap/heap.cc.theanarkh commentedon Jul 30, 2022
Thanks. So is it wrong to calculate the elapsed time for each GC type through prologue and epilogue callbacks ?
bnoordhuis commentedon Jul 30, 2022
Yes. No. Depends on whether you count kGCTypeProcessWeakCallbacks as a separate type. :-)
theanarkh commentedon Jul 30, 2022
Get it ! Thank you very much !
perf_hooks: fix gc elapsed time
perf_hooks: fix gc elapsed time
perf_hooks: fix gc elapsed time
perf_hooks: fix gc elapsed time
perf_hooks: fix gc elapsed time
perf_hooks: fix gc elapsed time