1'use strict'; 2require('../common'); 3const { GCProfiler } = require('v8'); 4 5// Test if it makes the process crash. 6{ 7 const profiler = new GCProfiler(); 8 profiler.start(); 9 profiler.stop(); 10 profiler.start(); 11 profiler.stop(); 12} 13{ 14 const profiler = new GCProfiler(); 15 profiler.start(); 16 profiler.stop(); 17} 18