xref: /third_party/node/test/addons/heap-profiler/test.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/addons/heap-profiler/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciconst common = require('../../common');
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ciconst binding = require(`./build/${common.buildType}/binding`);
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci// Create an AsyncWrap object.
81cb0ef41Sopenharmony_ciconst timer = setTimeout(common.mustNotCall(), 1);
91cb0ef41Sopenharmony_citimer.unref();
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci// Stress-test the heap profiler.
121cb0ef41Sopenharmony_cibinding.test();
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ciclearTimeout(timer);
15

Indexes created Thu Nov 07 10:32:03 CST 2024