Skip to content

v8: GCProfiler reports minor mark-sweep collections as "Unknown" #64687

Description

@Archkon

Version

latest main branch

Platform

7.1.4-arch1-1

Subsystem

v8

What steps will reproduce the bug?

'use strict';

const { GCProfiler } = require('node:v8');

const profiler = new GCProfiler();
profiler.start();

globalThis.gc({
  type: 'minor',
  execution: 'sync',
});

const profile = profiler.stop();
console.log(profile.statistics.map(({ gcType }) => gcType));

node --expose-gc --minor-ms repro.js

How often does it reproduce? Is there a required condition?

Every

What is the expected behavior? Why is that the expected behavior?

[ 'MinorMarkSweep' ]

What do you see instead?

[ 'Unknown' ]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 moduleIssues and PRs related to the "v8" subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions