mirror of https://github.com/nodejs/node.git
18 lines
313 B
JavaScript
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();
|
|
}
|