0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 20:29:23 +01:00
nodejs/test/parallel/test-v8-collect-gc-profile-exit-before-stop.js
theanarkh 733ef4e0ff
v8: support gc profile
PR-URL: https://github.com/nodejs/node/pull/46255
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
2023-01-25 12:02:09 +00:00

18 lines
313 B
JavaScript

'use strict';
require('../common');
const { GCProfiler } = require('v8');
// Test if it makes the process crash.
{
const profiler = new GCProfiler();
profiler.start();
profiler.stop();
profiler.start();
profiler.stop();
}
{
const profiler = new GCProfiler();
profiler.start();
profiler.stop();
}