GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v8: report minor mark-sweep in GCProfiler · nodejs/node@3def577

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_v8.cc
  • test/parallel
    • test-v8-collect-gc-profile-minor-ms.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_v8.cc‎

Copy file name to clipboardExpand all lines: src/node_v8.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ static const char* GetGCTypeName(v8::GCType gc_type) {
336336
switch (gc_type) {
337337
case v8::GCType::kGCTypeScavenge:
338338
return "Scavenge";
339+
case v8::GCType::kGCTypeMinorMarkSweep:
340+
return "MinorMarkSweep";
339341
case v8::GCType::kGCTypeMarkSweepCompact:
340342
return "MarkSweepCompact";
341343
case v8::GCType::kGCTypeIncrementalMarking:
Collapse file

‎test/parallel/test-v8-collect-gc-profile-minor-ms.js‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Flags: --expose-gc --minor-ms
2+
'use strict';
3+
4+
require('../common');
5+
const assert = require('assert');
6+
const { GCProfiler } = require('v8');
7+
8+
const profiler = new GCProfiler();
9+
profiler.start();
10+
global.gc({ type: 'minor', execution: 'sync' });
11+
12+
const profile = profiler.stop();
13+
assert.deepStrictEqual(
14+
profile.statistics.map(({ gcType }) => gcType),
15+
['MinorMarkSweep'],
16+
);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.